|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Catch Key Down Event anywhere on Windows FormHi
I would like to complete a task whenever F4 is pressed by the user anywhere on a form. The problem is the Key Down event does not fire for the form if the user is, for example within a text box. Is there any method of doing this other than adding the code to the key down event for all controls? Thanks B Hi,
If you set the forms keypreview property to true the form will get the keydown before the textbox. http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.keypreview.aspx Ken -------------------------- Show quoteHide quote "Ben" wrote: > Hi > > I would like to complete a task whenever F4 is pressed by the user anywhere > on a form. > > The problem is the Key Down event does not fire for the form if the user is, > for example within a text box. Is there any method of doing this other than > adding the code to the key down event for all controls? > > Thanks > B > > >
Syntax error in INSERT INTO statement
How to attach an exe to the debugger? question about opening SQL results in Excel from ASP.NET via XML PRINTER INFORMATION User Control saving properties Newbie - MDI Question Getting the generated name attribute for use in JavaScript syntax to compare data from text field, when adding a record, to a field in a table for duplicates Blinking button problem with DataSet.GetXml() method |
|||||||||||||||||||||||