The data area passed to a system call is too small
Hi all,
I'm trying to create an app that will process several files at once,
dropped onto its icon in Explorer. But if I drop too many files at
once (e.g. > ~30 files, which equates to 2048 bytes of command line
args), the app isn't even launched and I get an alert box saying "The
data area passed to a system call is too small".
Now I know of several apps that can accept a huge amount of files
dropped on them, like for instance Winrar.
Is there a trick to increase the internal buffer size for the command
line args ?
Michel Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117454
No activity on a form...
What is the easiest way of tracking whether there has been any activity on a
form at all in a specific time ?
I want to have a form that automatically "timeouts" after a period of no
activity. I don't really want to have to go through every button, box and
catch every mouse-click etc. to know that the user is actively using the
form - I just want to be able to somehow have a function called which can
then close the form if there has been no activity for a few minutes.
I don't actually mind if the "no activity" is just on that form, or I have
to rely on no-activity on the whole pc for a period of time..
Many thanks in advance
Simon Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117453
Can anyone recommend a WPF-like control for WinForms?
I am needing to develop animated effects in my WinForms application.
The trick is that the background of the control needs to be semi-
transparent or completely transparent.
- WPF through Interop does not allow this, it always shows a black
background.
- Silverlight will only run in the browser
- Is there a Flash alternative ?
I have also tried reproducing animations through GDI+ using a single
transparent container to add/remove graphical controls, however, there
are massive problems with controls not getting destroyed properly.
(We're talking about hundreds of icons/controls getting created &
destroyed routinely).
Thanks Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117443
Ativate Form
Hello,
When a window is closed, what is the next window to get activated, and how
is that determined?
Thanks,
Schneider Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117438
associating value with treenode in vb.net
hello everyone,
How can I associate a value with a tree node? I have this
TreeNode nodeFirstRecord
nodeFirstRecord = new TreeNode[dr["location"]]
How can I se the value of IndexId to the treeNode in order to retrieve the
value later
nodeFirstRecord.value = dr["indexId"], I want to do something like this
Any help will be greatly apprecaited. Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117436
IBindingList Filter and DataGridView
I do binding collections to DataGridView. It is necessary to do filtration
and it is probably needed to realize IBindingList.
It would be desirable to see an example, as it is done.
http://www.alvas.net - Audio tools for C# and VB.Net developers Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117435
funny look to tab with bottom alignment
When a tab page is made with the tabs aligned at the bottom instead of
the
default top one gets a funny look and feel. The rounded parts of the
tabs
continues to be at the top and the square end is at the bottom. One
would
expect it to be inverted. (This is .NET 2.0 framework and I cannot
move to
new frameworks due to certain other problems)
Is something wrong here ?
Anonymous Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117433
Databinding problem - DisplayName empty
I'm having some trouble getting databinding to a ListBox to work
correctly. I think the collection I'm trying to bind against is a
little odd, so I'm wondering if that could be part of the problem.
Below is a sample of the databinding code.
AxisCollection axis = GetAxisCollection()
myListBox.DataSource = null;
myListBox.Items.Clear();
myListBox.DisplayMember = "Attribute.Name";
myListBox.ValueMember = "Attribute.AttributeID";
myListBox.DataSource = attribs;
AxisCollection is a collection which derives from List<Axis>.
The Axis class looks something like:
Attributes
Name
AttributeID
DisplayNumber
Attributes is a reference type property for the Axis class.
After setting the DataSource property, I notice (using the debugger)
that the DisplayMember property changes to an empty string.
When I look at the displayed values in the listbox, they are just the
name of the class (repeated for each element in the collection).
Interestingly, if I change the myListBox.DisplayName to a value type
(i.e. "DisplayNumber") on the class, the value is displayed correctly
in the ListBox and the DisplayName remains after setting the
DataSource.
Any ideas on what could be going on would be greatly appreciated.
Thanks! Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117425
TooStripComboBox.Validate event: setting Cancel = true doesn't prevent other toolbar controls from being clicked
I have a toolbar with a buncha buttons and a combo box. When the program
starts, the combo opens and its mandatory that the user make a selection
before continuing. I'm trying to do this with the Validate event, but its
not working. If the combo is open and the user clicks a different toolbar
button, my code sets Cancel = true and maintains focus on the combo box, but
the Click event of the other button still gets executed. The result is not
at all what I'm looking for! How can I prevent the other buttons from being
clicked? Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117424
Form created on BackGroundThread
Hi,
I have some generic module that handles exceptions. simply you call it like
this: "LogManager.ErrorMessage(ex)".
Worked great, until we now discovered that it isn't Thread-safe. What
actially happens is this: A Form is made, labels and buttons are made etc
with the exception-details, but when trying to show the Form
(MyExceptionForm.ShowDialog) we get an System.Security.SecurityException
(see udnerneath for more info).
Seems completely normal to me, because we are accessing the UI from another
Thread. But how to find a solution?
Thanks a lot in advance,
Pieter
PS 1 : I see 2 possiblities:
1. Call InvokeRequired with Invoke like we usally do when accessing controls
from another thread
(http://msdn.microsoft.com/en-us/library/ms171728(VS.80).aspx). BUT:
MyExceptionForm.InvokeRequired returns false... I guess this is because it
has been constructed in a background Thread?
2. To get around this problem: Figure out when we are on a background thread
(via Threading.Thread.CurrentThread.IsBackground: is this true??) and than
get via an event an an Invoke or something like that on the Main-htread and
call the form from there?
3. ...
PS 2: The exception when doing a MyExceptionForm.ShowDialog:
System.Security.SecurityException was caught
Message="Request for the permission of type
'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
Source="mscorlib"
StackTrace:
at System.Security.CodeAccessSecurityEngine.Check(Object demand,
StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at LoggingManager.LogManager.ExceptionToUI(LogException MyException) Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117417
deadlock when using waitOne in a STA thread
Hi,
I have the problem described bellow with the calls to WaitHandle.WaitOne
causing re-entrancy on main GUI thread (STA) of a .NET application and I
would like to find out:
- did anybody else run into the same problem?
- is it a known issue? is there a fix for it?
- is there a workaround for it?
- if no fix/workaround I would like to find out the complete list of
messages that are being handled (dispatched by ole32.dll OLE/COM message
pump) when doing WaitOne on a STA thread.
The problem is:
I have 2 (or more) calls pending to execute on the main gui thread (I am
actually doing Invoke on some control)
the first call, at some point does WaitHandle.WaitOne.
at this point, if a Windows message comes to the app (like
WM_POPUPSYSTEMMENU - 0x0313 ) triggered by a right-click on the task bar
icon of the app the following happens:
- the app processes this message
- the app starts processing other pending messages - like my second
invoke
- at this point my app is deadlocked, because it is not supposed to
enter the second call before finishing processing the first one.
- also at this point the entire system is not behaving properly - for
example I cannot bring up any window by clicking on the taskbar icon
important note: if I would not do right click on the taskbar icon of my app,
and just let it work in background, everything would be ok.
After investigating this issue for a while, I found that WaitOne is not
actually a blocking call when called from an STA thread.
The only reference I found related to this matter in MSDN pages is here:
http://msdn.microsoft.com/en-us/library/74169f59.aspx .
Quoting from that page:
"WaitHandle..::.WaitOne,WaitHandle..::.WaitAny, WaitHandle..::.WaitAll,
Monitor..::.Enter, Monitor..::.TryEnter, Thread..::.Join,
GC..::.WaitForPendingFinalizers, and so on are all responsive to
Thread..::.Interrupt and to Thread..::.Abort. Also, if your thread is in a
single-threaded apartment, all these managed blocking operations will
correctly pump messages in your apartment while your thread is blocked."
If the apartment state is STA this function actually creates a message loop
that is processing some events (for now I have been able to identify 2 of
them (WM_POPUPSYSTEMMENU and WM_ACTIVATEAPP). The problem is that these
messages triggers processing of other messages in the queue (like the
registered messages used for invoke in .NET ).
I have attached a simplified application to demonstrate the issue. In this
app I have created a thread from where I am calling multiple times the same
function which is suppose to execute on the GUI thread.
I have put some console prints to show that it is executing another invoke
on the main thread even if it is supposed to stay in the wait.
Another thing, in my app the calls to some functions are not supposed to
re-enter (and we are protecting them with the waitOnes) but if I modified
the sample app (attached to this mail) to have a non-blocking re-entrancy ,
I noticed if I right click on the taskbar icon while the first call is in
waitOne, all the other calls will be executed before the first call ends -
this is actually easy to explain since the other calls are not processed by
the app message loop but they are processed by the message loop created by
the WaitOne. however I don't think this should be the normal behavior - that
is: when I invoke 3 calls on some thread, the order of execution should be
the order of the invokes.
waiting forward for your replies
Daniel.
begin 666 DeadLockWaitOne.zip
M4$L#!!0````(`&-ONSA2]6S&:0,``"@)```F````1&5A9$QO8VM786ET3VYE
M+T1E861,;V-K5V%I=$]N92YC<W!R;VJ]5LUNVS@0OA?H.W"-`FF!6C*2;..T
ML@#_)0W0;@([:?:0"R6.;+;\`TDUT6[WR?:PC[2OL*1,N5:<I+YL#X'#^3[.
M#+\9<?COW_\D%UI^AMRB"12X9/82ZP58,^B,2LI(!]UQ)MQJ::UZ&\<F7P+'
M)N(TU]+(PD:YY#&!K\"D`AUSD_EM\7ZO=]!)GS]#R/MWB*U.M2Q5;7+&L10%
M790:6RH%<BM"_7^##MI[\;(%OMI#@P':VT.== )9N4CB%MPXO%E+S^[X:
M^X:;H:C&%U=)W$!K%UJ2,K>?0!OON!_UHE][1_M'CME&`G]>:]$8]Z->$K=-
MW_UZ@4]+2M(_^^/1N'_<GW2/1V\.NH<GHU'WN#\==D_VWTR/1OW)P>'PZ*\Z
MXGI/<'->6E7:RTI!.KV#)-Y8!\90J0D8NA"@3R0CH-.@/063Q-MHV#:3TOZ&
M.1B%<W B8_)!YE^N,;7GPL5IPTTH8X!GK/+ ]I866C=!O-T%[<9XN@>^;16R
M[H5OJU+ZHH:\:O.\XIED)K6Z=,FT3)NT6KJB9"QP-J4\5Y9R^H?#,3->[&;=
M*L8%MLLTH^*FWG_3U*0VKR,55( [C;%86)-.IJ.KTW>7L^%XZL.VP;!GJK74
M,U!2VU1IR95-XDU;H%UC+:A8?/ ?7WJ8Q*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B@<4_M=X.X1A_2!J[L0=:SNHNRB,$$#DMU70>:HE_LU7&BRY3Y=Z9NA&7!
MOG)L7'<,W?G;:&P%'V)=H.].+S"->9[_I+,61/W>[G"4KDT.?"??JR>QOP%0
M2P,$"@``````*W+%. ```````````````! ```!$96%D3&]C:U=A:71/;F4O
M4$L#!!0````(`(=<NSA.`2^[9@$``*8#```3````1&5A9$QO8VM786ET3VYE
M+G-L;J6204^#,!B&SY+P'PA>9K*2;L,-#AYHH7J8NDC4BY<.RE*M=(%B8N9^
MF0=_DG_!$K<YV&+,O/&]??M]S_>6S_</T[CD22%+F2GKCI<5%5:LJI1+*Y:B
M4ESF%N&"=2TBBV>J/:PH:]%W(#2-X]:=/H2GIC$IY"-+5,=>D""";H0A&, >
M`;U>. "(N A B*%+1GY$$%[:)]:998>,IF.9/-U3KJYS9G=WI(=6[23E7$^J
MG0L/(^SY7@A\-!P`ER $?"\*`.D/HQ'RPH$;C):V:41YNJ(SC7,AIU28QM'W
M1ZQ%O5EGO3>6><9G54'K8B*HRG0"9<TZ+]C:I&\?A6Q:S=Z"_-7"DUM]W*AK
MPPT3C)9LR])2M$F#-3!VL%;8OU#)4FUC_2T3IT'K!'K8"\/9;-\>!W5$%1>I
M`__1KQ56@W$WR$.[_G >\#CKW/4CS5FA.-OWGUSP=%-?R91I!PG&<;1WP$8Q
MC2]02P$"% `4````" !C;[LX4O5LQFD#```H"0``)@`````````!`" `````
M````1&5A9$QO8VM786ET3VYE+T1E861,;V-K5V%I=$]N92YC<W!R;VI02P$"
M% `4````" !C;[LX,1ZNU+H```#Y````*P`````````!`" ```"M`P``1&5A
M9$QO8VM786ET3VYE+T1E861,;V-K5V%I=$]N92YC<W!R;VHN=7-E<E!+`0(4
M`!0````(`"MRQ3BB^H,SNP,``-,,```:``````````$`( ```+ $``!$96%D
M3&]C:U=A:71/;F4O4')O9W)A;2YC<U!+`0(4`!0````(`/==NSBB/YBZS@4`
M`+86```<``````````$`( ```*,(``!$96%D3&]C:U=A:71/;F4O4')O9W)A
M;2YR97-X4$L!`A0`"@``````W*V]. ```````````````!L````````````0
M````JPX``$1E861,;V-K5V%I=$]N92]0<F]P97)T:65S+U!+`0(4`!0````(
M`(9<NSA"$S*K.@(``/X$```J``````````$`( ```.0.``!$96%D3&]C:U=A
M:71/;F4O4')O<&5R=&EE<R]!<W-E;6)L>4EN9F\N8W-02P$"% `*```````K
M<L4X````````````````$ ```````````! ```!F$0``1&5A9$QO8VM786ET
M3VYE+U!+`0(4`!0````(`(=<NSA.`2^[9@$``*8#```3``````````$`( ``
M`)01``!$96%D3&]C:U=A:71/;F4N<VQN4$L%!@`````(``@`7P(``"L3````
!````
`
end Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117415
ProgressBar and Form loading
Hello,
I don't know if such question was already posted but I didn't find anything
through different posts.
I have the Main MDI window with a StatusBar. Inside my StatusBar there is a
ProgressBar. When I click on the menu in my MDI Parent, a child form is
loaded. I would like to know if there is a way to increment a progressbar
value while child form is loading ? I tried to use background worker but i
had some cross thread access exceptions. any ideas ? Thanks in advance.
Thomas
--
Thomas JASKULA - NODEVO
1, avenue du Général de Gaulle
60500 - Chantilly Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117414
Redirecting to ClickOnce application fails
Hello,
We have implemented a few years ago a "zero touch" deployed smart client
application for .NET 1.1.
We ported now this application to .NET 2.0 and deploying it with ClickOnce.
Because we have still .NET 1.1 clients around, we made a small ASP.NET
startup application that checks host header values and redirects
(Response.Redirect(...)) to the .application file in case the client has
.NET 2.0 installed. Otherwise it will launch the old smart client on a web
page.
This all works fine as long as we start the ASP.NET startup page (let's call
it StartClient.aspx) from within Internet Explorer. If we put a link to the
startup page into an e-mail or just on the desktop launching the ClickOnce
client with this link fails with a "Cannot Start Application" message box.
The details say:
SOURCES
Deployment url :
https://myserver/Client/StartClient.aspx
ERROR SUMMARY
Below is a summary of the errors, details of these errors are
listed later in the log.
* Activation of https://myserver/Client/StartClient.aspx
resulted in exception. Following failure messages were detected:
+ Downloading
https://myserver/Client/StartClient.aspx did not succeed.
+ The remote server returned an error: (403)
Forbidden.
The deployment url is the startup page and not the .application manifest
file as we would expect. When checking IIS logs, we can find first a request
to StartClient.aspx, second a request to
https://myserver/ClickOnceClient/MyApp.application (the manifest), and a
third request back to StartClient.aspx.
This third request doesn't happen when we access the aspx page from within
Internet Explorer (where, as mentioned before, everything works as
expected).
It seems like it only partially redirects when launching from a hyperlink in
a document.
Thanks for your help in advance,
Jürgen Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117413
Checking whether or not checkbox on web page is checked
Let's say that I use the following code to get a reference to a
checkbox on a web page in a WebBrowser control:
Dim oHtmlElement As HtmlElement
oHtmlElement =
WebBrowser1.Document.GetElementById("chkThrowInTheTowel")
How can I tell if the checkbox is checked or not? oHtmlElement.Checked
is not an option, so how would I do this? Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117412
Restarting app
Hi
Is there a way to restart a winform app in case of a serious error?
Thanks
Regards Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117409
System.Collections
' i face the following problem while using different types of system
collection classes
while using Hashtables as shown in the example below, the week days
will be shown in combobox1 start with "Wed"
and will start with "Sat" while using Stack and other collections are
ok
I wonder if i miss something here, or what is going on Exactly
i.am using VS2008 if that help
-----------------------------------------
Case 1 - Hashtable
'
' Create a new Hashtable.
Dim Hweeks As New Hashtable()
' Add some elements to the Hashtable
Hweeks.Add("1", "Sun")
Hweeks.Add("2", "Mon")
Hweeks.Add("3", "Tue")
Hweeks.Add("4", "Wed")
Hweeks.Add("5", "Thu")
Hweeks.Add("6", "Fri")
Hweeks.Add("7", "Sat")
'
' Create a new DictionaryEntry.
Dim Hday As DictionaryEntry
For Each Hday In Hweeks
ComboBox1.Items.Add(Hday.Value)
Next
' Case 2 - Stack
'
' Create a new Stack.
Dim stackTable As New Stack()
' Add some elements to the Stack
stackTable.Push("Sun")
stackTable.Push("Mon")
stackTable.Push("Tue")
stackTable.Push("Wed")
stackTable.Push("Thu")
stackTable.Push("Fri")
stackTable.Push("Sat")
For s As Integer = 0 To stackTable.Count - 1
ComboBox2.Items.Add(stackTable.ToArray(s))
Next
------------------------------------------------------------------------------------------
' Case 3 - Queue
'
' Create a new Queue.
Dim queueList As New Queue()
' Add some elements to the Queue
queueList.Enqueue("Sun")
queueList.Enqueue("Mon")
queueList.Enqueue("Tue")
queueList.Enqueue("Wed")
queueList.Enqueue("Thu")
queueList.Enqueue("Fri")
queueList.Enqueue("Sat")
For q As Integer = 0 To queueList.Count - 1
ComboBox3.Items.Add(queueList.ToArray(q))
Next
' Case 4 - ArrayList
'
' Create a new ArrayList.
Dim ItemList As New ArrayList()
' Add some elements to the ArrayList
ItemList.Add("Sun")
ItemList.Add("Mon")
ItemList.Add("Tue")
ItemList.Add("Wed")
ItemList.Add("Thu")
ItemList.Add("Fri")
ItemList.Add("Sat")
For a As Integer = 0 To ItemList.Count - 1
ComboBox4.Items.Add(ItemList.Item(a))
Next
' Case 5 - DictionaryOfString
'
' Create a new dictionary of strings.
Dim DictionaryOfString As New Dictionary(Of String, String)
' Add some elements to the dictionary.
DictionaryOfString.Add("1", "Sun")
DictionaryOfString.Add("2", "Mon")
DictionaryOfString.Add("3", "Tue")
DictionaryOfString.Add("4", "Wed")
DictionaryOfString.Add("5", "Thu")
DictionaryOfString.Add("6", "Fri")
DictionaryOfString.Add("7", "Sat")
For Each kvp As KeyValuePair(Of String, String) In
DictionaryOfString
ComboBox5.Items.Add(kvp.Value)
Next
' Case 6 - SortedList
'
' Creates and initializes a new SortedList.
Dim SL As New SortedList()
' Add some elements to the SortedList.
SL.Add("1", "Sun")
SL.Add("2", "Mon")
SL.Add("3", "Tue")
SL.Add("4", "Wed")
SL.Add("5", "Thu")
SL.Add("6", "Fri")
SL.Add("7", "Sat")
For l = 0 To SL.Count - 1
ComboBox6.Items.Add(SL.GetByIndex(l))
Next
thanks
Omar Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117406
windows vista serrvice pack1
I just formated-I was wondering if I were to install all updates before SP1
--
zeaus Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117405
Binding DataGridView after Filtering
Hi,
I have no idea why the datagrid does not display correct information. I have
a load button which loads all data based on query (i have observed 100),
then I have a textbox and a button to passing in filter and it displays
appropriate records. Now if i click the load button again, it does not load
all data but shows only the filtered data that was used during filtering
process.
I am attaching the sample code.
Please help,
Stephen
private void btn_Load_Click(object sender, EventArgs e) <--- loading
all records
{
DataSet _dsEmployees = returnDataset();
_dsEmployees = returnDataset();
myGridView.DataSource = _dsEmployees.Tables[0];
}
private DataSet returnDataset()
<--- this does work
{
dsEmployees = (DataSet)CacheKeys.Cache[CacheKeys.EmployeeDS];
if (dsEmployees == null)
{
dsEmployees = OracleDataRetrieval.GetEmployeeDataSet(GetSQL());
CacheKeys.Cache.Insert(CacheKeys.EmployeeDS, dsEmployees, null,
DateTime.Now.AddMinutes(5),
System.Web.Caching.Cache.NoSlidingExpiration);
}
return dsEmployees;
}
private void btn_Filter_Click(object sender, EventArgs e) <--
filtering data
{
string filterSQL = txt_Filter.Text.Trim();
DataSet _dsEmployee = returnDataset();
DataView _dvEmployee = _dsEmployee.Tables[0].DefaultView;
_dvEmployee.AllowNew = false;
_dvEmployee.AllowDelete = true;
_dvEmployee.Sort = "FIRST_NAME ASC, LAST_NAME ASC";
_dvEmployee.RowFilter = "LAST_NAME LIKE '" + filterSQL + "*'";
if (_dvEmployee.Count != 0)
myGridView.DataSource = _dvEmployee;
} Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117404
Custom DataGridView and keyboard input - C# VS2005
Hello,
I work in VS2005 in C#. I have a problem with my custom DataGridView and
keyboard input. I am trying to catch user input and search through current
column. Everything works fine with searching.
The problem is when I press one of non-english letters or number from
numeric keyboard I do not get character that I pressed.
For example: I press key with code 0x010D but catch it as 0x00BA.
One good example:
when I press 'e' or 'E' (Shift+e) I get inputChat = 'E', msg.WParam
= 0x45, msg.LParam = 0x120001
This is the method where I do that:
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
char inputChar = (char)((ushort)msg.WParam.ToInt32());
// msg.WParam is 0x00BA but it should be 0x010D
// msg.LParam is 0x270001
...
}
Here are the questions:
1. Is there a way to extract the correct code for the pressed key from msg
parameter and its properties?
2. Is there a better place (method) to catch a keyboard input?
I would appreciate any suggestion,
Vlado
P.S. When I catch keyboard input in one of my other custom controls I use
ProcessKeyPreview and everything works fine, but ProcessKeyPreview is not
good in DataGridView. Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117403
Is there any modern way to create a DSN using Dot Net?
I'm looking for a way to programmatically create an ODBC DSN in Dot Net 2.0.
Has anyone done anything like this?
(All of the references that I've found so far seem hopelessly dated, as old
as VB4, and I'm not sure I can make them work in Dot Net. ) Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117402
can not log on after removing malware
After running some malware removal software to remove registary enteries put
there by malware alarm 2008. my daughter can not log into her computer. she
gets a welcome screen with administrator on it and when she clicks on it it
does something then goes back to the screen.
also, where does she go on microsoft site to down load a startup disk for
the window xp media ( or multimedia) edition?? Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117398
deadlock when using waitOne in a STA thread
Hi,
I have the problem described bellow with the calls to WaitHandle.WaitOne
causing re-entrancy on main GUI thread (STA) of a .NET application and I
would like to find out:
- did anybody else run into the same problem?
- is it a known issue? is there a fix for it?
- is there a workaround for it?
- if no fix/workaround I would like to find out the complete list of
messages that are being handled (dispatched by ole32.dll OLE/COM message
pump) when doing WaitOne on a STA thread.
The problem is:
I have 2 (or more) calls pending to execute on the main gui thread (I am
actually doing Invoke on some control)
the first call, at some point does WaitHandle.WaitOne.
at this point, if a Windows message comes to the app (like
WM_POPUPSYSTEMMENU - 0x0313 ) triggered by a right-click on the task bar
icon of the app the following happens:
- the app processes this message
- the app starts processing other pending messages - like my second
invoke
- at this point my app is deadlocked, because it is not supposed to
enter the second call before finishing processing the first one.
- also at this point the entire system is not behaving properly - for
example I cannot bring up any window by clicking on the taskbar icon
important note: if I would not do right click on the taskbar icon of my app,
and just let it work in background, everything would be ok.
After investigating this issue for a while, I found that WaitOne is not
actually a blocking call when called from an STA thread.
The only reference I found related to this matter in MSDN pages is here:
http://msdn.microsoft.com/en-us/library/74169f59.aspx .
Quoting from that page:
"WaitHandle..::.WaitOne,WaitHandle..::.WaitAny, WaitHandle..::.WaitAll,
Monitor..::.Enter, Monitor..::.TryEnter, Thread..::.Join,
GC..::.WaitForPendingFinalizers, and so on are all responsive to
Thread..::.Interrupt and to Thread..::.Abort. Also, if your thread is in a
single-threaded apartment, all these managed blocking operations will
correctly pump messages in your apartment while your thread is blocked."
If the apartment state is STA this function actually creates a message loop
that is processing some events (for now I have been able to identify 2 of
them (WM_POPUPSYSTEMMENU and WM_ACTIVATEAPP). The problem is that these
messages triggers processing of other messages in the queue (like the
registered messages used for invoke in .NET ).
I have attached a simplified application to demonstrate the issue. In this
app I have created a thread from where I am calling multiple times the same
function which is suppose to execute on the GUI thread.
I have put some console prints to show that it is executing another invoke
on the main thread even if it is supposed to stay in the wait.
Another thing, in my app the calls to some functions are not supposed to
re-enter (and we are protecting them with the waitOnes) but if I modified
the sample app (attached to this mail) to have a non-blocking re-entrancy ,
I noticed if I right click on the taskbar icon while the first call is in
waitOne, all the other calls will be executed before the first call ends -
this is actually easy to explain since the other calls are not processed by
the app message loop but they are processed by the message loop created by
the WaitOne. however I don't think this should be the normal behavior - that
is: when I invoke 3 calls on some thread, the order of execution should be
the order of the invokes.
waiting forward for your replies
Daniel.
begin 666 DeadLockWaitOne.zip
M4$L#!!0````(`&-ONSA2]6S&:0,``"@)```F````1&5A9$QO8VM786ET3VYE
M+T1E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:B
M4ESF%N&"=2TBBV>J/:PH:]%W(#2-X]:=/H2GIC$IY"-+5,=>D""";H0A&, >
M`;U>. "(N A B*%+1GY$$%[:)]:998>,IF.9/-U3KJYS9G=WI(=6[23E7$^J
MG0L/(^SY7@A\-!P`ER $?"\*`.D/HQ'RPH$;C):V:41YNJ(SC7,AIU28QM'W
M1ZQ%O5EGO3>6><9G54'K8B*HRG0"9<TZ+]C:I&\?A6Q:S=Z"_-7"DUM]W*AK
MPPT3C)9LR])2M$F#-3!VL%;8OU#)4FUC_2T3IT'K!'K8"\/9;-\>!W5$%1>I
M`__1KQ56@W$WR$.[_G >\#CKW/4CS5FA.-OWGUSP=%-?R91I!PG&<;1WP$8Q
MC2]02P$"% `4````" !C;[LX4O5LQFD#```H"0``)@`````````!`" `````
M````1&5A9$QO8VM786ET3VYE+T1E861,;V-K5V%I=$]N92YC<W!R;VI02P$"
M% `4````" !C;[LX,1ZNU+H```#Y````*P`````````!`" ```"M`P``1&5A
M9$QO8VM786ET3VYE+T1E861,;V-K5V%I=$]N92YC<W!R;VHN=7-E<E!+`0(4
M`!0````(`"MRQ3BB^H,SNP,``-,,```:``````````$`( ```+ $``!$96%D
M3&]C:U=A:71/;F4O4')O9W)A;2YC<U!+`0(4`!0````(`/==NSBB/YBZS@4`
M`+86```<``````````$`( ```*,(``!$96%D3&]C:U=A:71/;F4O4')O9W)A
M;2YR97-X4$L!`A0`"@``````W*V]. ```````````````!L````````````0
M````JPX``$1E861,;V-K5V%I=$]N92]0<F]P97)T:65S+U!+`0(4`!0````(
M`(9<NSA"$S*K.@(``/X$```J``````````$`( ```.0.``!$96%D3&]C:U=A
M:71/;F4O4')O<&5R=&EE<R]!<W-E;6)L>4EN9F\N8W-02P$"% `*```````K
M<L4X````````````````$ ```````````! ```!F$0``1&5A9$QO8VM786ET
M3VYE+U!+`0(4`!0````(`(=<NSA.`2^[9@$``*8#```3``````````$`( ``
M`)01``!$96%D3&]C:U=A:71/;F4N<VQN4$L%!@`````(``@`7P(``"L3````
!````
`
end Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117397
Pass parameters to Windows Service
Hello everyone,
I have a Windows service that is begun, and I would like be able to tell a
number of parameters or cause an event (from the outside) to do some tasks.
for example, I have initiated a service windows and there is a task
scheduled for some time to be launching a process which is in the Windows
Service.
Now, I use a Timer class to launch the task, but I want to know whether
there are other options or ways to do it.
Thanks in advance, best regards. Sorry my english
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica/viewtopic.php?p=843
www.trabajobasura.com/solusoft Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117396
Pick value in dropdown combo on WebBrowser page
I have a WebBrowser on a form and I am automating some data entry on
pages displayed therein. I know how to select/click on a radio button
or checkbox. I know how to set the value of a text box. But, how do I
programmatically set the value picked in a drop down? I tried the
following:
Dim oHtmlElement As HtmlElement
oHtmlElement = WebBrowser1.Document.GetElementById("cboGroups")
oHtmlElement.InnerText = "Group 1"
but that doesn't work, even though "Group 1" is one of the options in
the dropdown. Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117395
evaluate function for WebBrowser control
Consider the following line of javascript:
var checkBoxes = document.evaluate('//input[@type="checkbox"]', doc,
null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
Is there a way to accomplish this with the WebBrowser.Document? Is
there something equivalent to the evaluate method?
On a related note, is there code that I could run that would return a
collection (HtmlElementCollection) of just the checkboxes on a form? Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117390
Memory leak with TextBox?
I have a windows app which contains a readonly multi-line textbox.
This textbox is used to display "log" information as actions/events
occur within the application. The contents can eventually get to be
very large, as our app is often left to run overnight. We allow the
user to clear the contents of the textbox by right-clicking and
selecting "Clear" from a context menu. Within the event handler for
this menu item, I've tried clearing out the contents using the
Clear( ) method and by setting Text to "". Regardless of how I clear
it, when I monitor memory usage I notice that the memory actually goes
up after the contents are cleared. For example, in one particular
test I let the app run overnight. The next morning I cleared it, and
mem usage actually went up over 200 megabytes. I waited for a long
time to see if GarbageCollection would eventually release it, and it
did not.
I've tried other things within my code as well such as calling
ClearUndo immediately afterward. I also tried forcing garbage
collection afterward. No luck.
This is a problem for us because our users need to see this log
information, but yet it can get very big and they need the ability to
occasionally clear it.
Any ideas why clearing out a textbox causes memory usage to go up? Is
this an acknowledged memory leak within the .Net framework of which
I'm just not aware?
Thanks,
Jeff Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117387
RichTextBox.RTF handle
Hello,
I have some problem with handling the RTF type string. I have an application
which must have a text box, can handle Pictures and formatting texts, etc. So
I have chosen the RichTextBox control and stored the RTF property as nvarchar
in my database.
It works fine, but now I have to show this text in a browser and I can't
convert the RTF string to HTML. And I can't get the images from the RTF
string.
So the question is:
How can I convert the RTF string to HTML or any other form which contains
images, formatted strings, tables, etc.
Or which control should I use to get these features. Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117384
Find/Replace dialog box
I needed to use a Find/Replace dialog box in .NET and I wanted to use
the common dialog that is available in the Win32 API. It needed a lot
of marshalling and fiddling with window message. I have created a
class that hides all these things and posted it on my blog. Go to
http://blog.ramondeklein.nl/?p=21 to download the C# source-code (in).
I saw some requests on the net, so I thought I should post it... Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117382
WebBrowser - waiting for page to load
I am attempting to use a WebBrowser on a Windows Form application, in
a situation where I am wanting to automate the following:
1) Click on all checkboxes on page
2) Click on link to go to new page
I have successfully coded the above two steps.
Now, what I want to do is do the above two steps a repeated number of
times. So, I try to do it in a loop. The problem is, step 1 attempts
to run before step 2 has completed (i.e. the new page has loaded).
How can I change code so that step 1 won't run until step 2 has
completed?
Private Sub GetEmAll()
For i As Integer = 1 To 10
GetContactsOnCurrentPage()
'*** WHAT SHOULD I DO HERE?
Next
End Sub
Private Sub GetContactsOnCurrentPage()
' Check all checkboxes on page
Dim oCheckBoxes As HtmlElementCollection = GetElements()
For Each oElement As HtmlElement In oCheckBoxes
If (oElement.OuterHtml.Contains("dgSelect_ct")) Then
oElement.InvokeMember("Click")
End If
Next
' Click on link to go to next page
Dim oNext As HtmlElement =
WebBrowser1.Document.GetElementById("btnNextPage")
oNext.InvokeMember("Click")
End Sub Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117379
How publish setup pkg that allows custom dir install
Created a VB.NET winform app using VS 2008. How do I allow the users, when
running setup.exe, to choose a directory to install it to, and whether it
should be installed to the program groups or not?
Thanks. Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117377
VS 2005: webbrowser control displaying image from database
Hi,
There is a webbrowser control in my app. I have also a ms sql database and
images are stored in.
I can display a html document in the webbrowser control. I also can read an
image from the database (I mean I have the image in memory as a byte array or
image object). Is it possible to display such image in html document shown in
the webbrowser??
How to do that?
thx in advance Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117376
Generate and save csv-file from C#?
Hi all,
I need my code to be able to generate and save an csv-file without
being prompted by a dialogue box, but I don't know if such a thing is
possible. I've found out how to generate the file without problems,
but I cannot seem to make it save the file to a predetermined
location. Is such a thing even possible?
The code I use to generate and open the file is below
private void CreateResponse(string QueryName, string CSVContent)
{
System.Text.Encoding encoding =
System.Text.Encoding.GetEncoding("ISO-8859-15");
byte[] b = encoding.GetBytes(CSVContent);
Response.Clear();
Response.Buffer = true;
Response.AddHeader("Content-Type", "application/ms-excel");
Response.ContentType = "text/csv";
Response.AddHeader("Content-Disposition", "attachment;filename=" +
DateTime.Now.ToString("dd-MM-yyyy") + "-" + QueryName + ".txt");
Response.BinaryWrite(b);
Response.End();
}
can somebody please help me figure out how I have to modify it in
order to make it save instead of just trying to open the file?
Thank you!
Maria Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117370
Getting a ComboBox to "pop open"
What instruction would get a ComboBox to Drop down and display the pick list
as it would if somebody had clicked it?
Any help is greatly appreciated. Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117369
Dock Window to an external application
Hi,
I'd like to dock my WinForm app to other applications. What is the easiest
approach for this?
Thanks in advance
Adrian
--
Adrian Miller Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117368
build context menu from menu strip
Hi,
I build the menu strip using the designer.I want the context menu of
the form to be same as children of one of the top leven Menu strip
item.
Items["actionToolStripMenuItem"] gives me a ToolStripItem object but
it does not have a hierarchy, no parents no children.
What do i do?
TIA Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117365
Expired certificates in the clickonce manifest
When a certificate expires, what options are available?
- use an internal certificate authority where you can renew a
certificate with the same private key
- delete the clickonce cache from each computer
- any others?
Background:
The ClickOnce technology requires every application update to be
signed using the same private key. When a certificate expires most CAs
like Verisign and Comodo will generate a new private key with the
renewed certificate. ClickOnce will throw up an error when this occurs
and will not download the update.
http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms/browse_thread/thread/64a15850347c32df/3b85d27a8b28c451?lnk=st&q=certificate+clickonce+linda+liu+expired
Thanks,
Brian Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117350
Need example of custom combobox inside DataGridView
I'm looking for a tutorial, example, or source code sample which shows how to
host a custom ComboBox control inside a DataGridView.
In other words, I have a new control "MyComboBox" which inherits from
ComboBox, then I create a an EditingControl for this class, which implements
IDataGridViewEditingControl, as well as associated classes which inherit from
DataGridViewComboBoxCell and DataGridViewComboBoxColumn.
I have my code basically working, with the following exceptions:
- the displayed text being shown after a selection is made is not correct
- the initial drop-down is not entirely shown correctly, but all subsequent
drop-downs are
Anyone with suggestions or (better yet) a sample of how to do this would be
great! Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117349
Setup project - add uninstall
In the Setup/deployment projects, how can you add an icon to the Programs
menu, to uninstall your application or dll? Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117347
Main form doesn't repaint until mouse moved
I've got a c# desktop app with various menu items that display modal dialogs
for changing app settings, etc.. Standard stuff.
After a particular dialog is closed, the main form doesn't repaint the area
that was covered by the child form until the user moves the mouse.
I can't see how this one form is different from the others, or what I may
have done to prevent the main form from repainting. Any suggestions on things
to check would be appreciated. Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117346
Native Chart support
Hi,
Does anybody know a native .net framework class for display GDI
charts? Like Component1 or Interop, but it need to be .Net native.
Thanks for any appointment
Thiago Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117345
Distinguish TerminalServer session versus XP RDP session
vb.net 2005 windows app with .net framework 2.0
On Windows XP,
System.Windows.Forms.SystemInformation.TerminalServerSession is
returning True when connected to Windows XP via remote desktop using
the /console switch.
I confirmed in an XP running in VirtualPC 2004 ... Task Manager (users
tab) that the session shows as "RDP-Tcp#blah" rather than console.
Is this expected behavior?
If this is expected behavior, how does an application distiguish if it
is running in terminal services versus a windows xp remote desktop
session? Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117344
PostScript font support in GDI+?
Is support for PostScript fonts planned, or possible through a workaround?
Only TrueType fonts and OpenType fonts containing TrueType outlines can be
picked for WinForms forms and controls; Type 1 and OpenType with Postscript
outlines don't show up in the font selector.
I'm working on a kiosk app for which part of the layout (background etc.)
was designed by a graphic agency, who used a font from Adobe for textual
elements. Now I'm expected to use the same font in software, but it's only
available in PS and OpenType-PS.
I did find a close look-alike in TTF format at URW++, but even I (not a
graphic designer by art&heart) found some small differences, and I'd like
to have the exact same typeface.
There are tools that convert PS to TT outlines, but the results look so bad
(choppy, pixelated) that they're useless for all but very large font sizes.
Funny though: those PS-to-TTF converted fonts look just perfect under
Linux, it's only under Windows that they get that choppy look.
[I'm on Vista now, I haven't tried how they look on XP.] Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117343
XP DISC SCRATCHED
IF YOU HAVE ORIGINAL XP DISK WITH PRODUCT KEY CAN YOU DOWN LOAD FROM NET THE
PROGRAM ? FROM MICROSOFT Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117340
Datagridview conditional formatting using separate column
Hi,
I want to conditionally format a column in a datagridview according to the
value in a different of my datasource. So if col 1 is true, then display col
2 in a different colour.
I know that I can use the cell formatting event if I want to conditionally
format the cell according to the value in that same column but is that the
best method to use if I'm using a different column for the condition?
Is this the best way of doing it, or is there something better?
In cell formatting event...
if dg.columns(e.columnindex).datapropertyname="ConditionColumn" then
if e.value=conditionvalue then
dim cell as datagridviewcell=dg(hard-coded column number,
e.rowindex)
cell.style.... do whatever formatting required
end if
end if
Would be a bit of a kludge having to hard code the 'target' column number
but I would actually replace that with a find on the datacolumns of the grid.
In my case, I don't actually need the column that is being looked at for the
condition on the grid. Does it HAVE to be there? Problem there is that if I
add it and make it invisible then the formatting event doesn't kick in. Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117339
Problems hosting a custom control / cell / column in a DataGridVie
I'm having trouble hosting a custom control in one of the columns of a
DataGridView object.
The custom control is a multi-column combo box, which behaves almost
identical to ComboBox, except that it shows multiple data columns when
dropping down, similar to old MS Access style combos.
The MultiColumnComboBox control can be found here:
http://www.edneeis.com/control.aspx?ID=7
Based on the info in this article
(http://msdn.microsoft.com/en-us/library/7tas5c80.aspx), and a little
experimenting, I have it basically working. The control is being shown as a
combo box in the data grid, it is being bound correctly, and is displaying
properly. To get that far, I had to create a a hosting
DataGridViewEditingControl control (implementing the
IDataGridViewEditingControl interface), a DataGridViewComboBoxCell cell, and
a DataGridViewComboBoxColumn specific to the new control.
The one issue I'm having is with the drop-down event. I keep getting the
following exception:
Object reference not set to an instance of an object
at
System.Windows.Forms.DataGridViewComboBoxCell.ComboBox_DropDown(Object
sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnDropDown(EventArgs e)
at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ComboBox.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef
hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr
wparam, IntPtr lparam)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr
hWnd, Message& m)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr
wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Control.DefWndProc(Message& m)
at System.Windows.Forms.Control.WmMouseDown(Message& m,
MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ComboBox.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&
msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at WindowsApplication2.Program.Main() in C:\Documents and
Settings\jarmstrong\My Documents\Visual Studio
2005\Projects\Solution1\WindowsApplication2\Program.cs:line 17
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
DataGridViewComboBoxCell.ComboBox_DropDown is hidden from me, so I'm not
sure what's going on.
The complete, compilable and runable source as a sample project can get
retrieved here: http://cowtowndance.com/temp/Solution1.zip
Any help would be greatly appreciated! Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117333
DataGridView bound to BindingList<myObj> -- how to update immediately when they click a checkbox?
I have a DataGridView bound to a BindingList<myObj>.
In my DGV I have two checkbox columns. Right now, the user can check these,
and if he clicks on another row or clicks on one of the buttons of the form,
it will fire the EndEdit event, in which I have embedded a Save().
Is there a way to get it to save when they click on it, rather than waiting
for the row to lose focus?
I'm also going to have to make one of the textbox columns editable, so will
the same solution work for that case as well?
Thanks,
RobinS.
GoldMail.com Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117332
Automating interactions with a web site
Consider the following scenario:
1) User goes to a web site (.aspx page) and logs in
2) User enters various values in controls, clicking on NEXT buttons to
go to a sequence of pages, until they get to a page that displays,
among other things, a table showing 10 rows, each with a checkbox at
the far left (i.e. first column). In addition, at the bottom of the
table, there are little "links" that can be clicked on to go to the
next/prior page, showing the next/prior ten results in a table.
Lastly, in case it helps, there is, to the right of the "links", a
text box in which the user can type a specific "page" of results to go
to.
NOTE: Unfortunately, the little "links", and Go To text box, slightly
move from page to page, making mouse movement/click recording/playback
not a viable option.
3) User puts check mark in all ten checkboxes, then clicks on link to
go to next page of results.
4) After user has clicked on a total of 1,000 checkboxes (i.e. 100
pages' worth), they are done (for purposes of this discussion).
What I want to do is automate Step 3 above 100 times.
So, what I'm imagining is having a Windows form, with a web browser
control on it that brings the user to the initial website. Then, the
user would do stuff outlined in Step 2. Lastly, there'd be a button on
the form (below the web browser control somewhere) that the user could
click on to perform Step 3 100 times. Then, the user could just
interact with the web browser again, clicking on whatever they need to
click on.
Is there a way to do something like this? Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117328
Question about Help Files/systems
My boss has asked me to look into the possibility of creating one central
help system that can be used by both the windows and web apps on our
intranet. (Assume for now that all the applications are written in Dot Net
2.0 and the only db server available is SQL Server 2000.) It stands to
reason that simply downloading an entire chm file everytime a web app needs
help sounds rather inefficient.
What are my options? Suggestions anyone? (Don't want to reinvent the wheel.) Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117327
access-based enumeration doesn't work
on the windows 2003 server service pack 2 , I installed abe but users who
don't have rights to folders under the shared folder can still see
everything. Can you please help Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117326
RichTextBox very slow
I'm using a RichTextBox in a protocol analyser I'm developing. However
as the amount of data gets large, e.g. 500000 lines, the control
becomes very slow.
For example if I load in a saved file it can take 30 seconds just to
transfer data from a StringBuilder to the RichTextBox, even with
updates turned off with WM_SETREDRAW.
Also I highlight a line when the users clicks on it and this can be
slow, as can be highlighting all instances of a string match.
Is there any way to make actions like adding text to a RichTextBox or
highlighted portions of text any faster?
TIA,
KK Tag: FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO Tag: 117325
access all computer tutorials for free visit http://freecomputertutorials2.blogspot.com/