Re: newbie: Can I intercept specific keystrokes?
From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 10/28/04
- Next message: Supra: "Re: drawing custom text in picturebox"
- Previous message: Rulin Hong: "RE: Debugger Don't Work With Component In Design Mode"
- In reply to: Carol: "newbie: Can I intercept specific keystrokes?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 28 Oct 2004 22:26:52 +0200
"Carol" <Carol@discussions.microsoft.com> schrieb:
> Is there a way to trigger an event when an individual key
> is pressed, as well as with key combinations and function
> keys? I want to trigger an event when the SHIFT key is
> pressed. I also want this to happen whether the form has or
> doesn't have the focus
You'll need a keyboard hook to capture these keystrokes system-wide:
Article on keyboard hooks:
<URL:http://www.developer.com/net/net/article.php/11087_2193301_1/>
Documentation on hooks:
<URL:http://msdn.microsoft.com/library/en-us/dnwui/html/msdn_hooks32.asp>
<URL:http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/hooks.asp>
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
- Next message: Supra: "Re: drawing custom text in picturebox"
- Previous message: Rulin Hong: "RE: Debugger Don't Work With Component In Design Mode"
- In reply to: Carol: "newbie: Can I intercept specific keystrokes?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|