Hi Dennis,
You can find the below remark of Form.KeyPriew property in MSDN:
"You can use this property to process all keystrokes in your application
and either handle the keystroke or call the appropriate control to handle
the keystroke. For example, when an application uses function keys, you
might want to process the keystrokes at the form level rather than writing
code for each control that might receive keystroke events."
Hope it helps.
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| Reply-To: "Dennis C. Drumm" <de*******@prim acode.com>
| From: "Dennis C. Drumm" <de*******@prim acode.com>
| Subject: Invode method via Function Keys
| Date: Mon, 4 Aug 2003 07:32:40 -0400
| Lines: 12
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#P************ **@TK2MSFTNGP11 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| NNTP-Posting-Host: tc-nhmht-swr-u189.net-resource.com 216.204.76.189
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1739 59
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| What is the best way for a modal dialog (windows form) to invoke an
| unpublicized key combination such as CTRL-ALT-F6? Would it be to set a
| single key up event for all the controls in the dialog to test for that
| particular key combination or is there a better way to do it? What I don't
| want to do is invoke the method with a button control or menu item click.
| This is something I want to be un-publicized, if you will.
|
| Thanks,
|
| Dennis
|
|
|