|
-
Mar 30th, 2009, 07:31 PM
#1
Thread Starter
Stack Overflow moderator
[RESOLVED] Key Handling without Focus?
How do you accept key presses when the form does not have the focus? Do you need to use a different event?
-
Mar 30th, 2009, 07:48 PM
#2
Re: Key Handling without Focus?
Set the Form's KeyPreview Property to True.
-
Mar 30th, 2009, 08:01 PM
#3
Re: Key Handling without Focus?
setting keypreview to true won't work.
have a look at the hotkeys link in my signature for system wide hotkeys
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Mar 30th, 2009, 08:19 PM
#4
Re: Key Handling without Focus?
Oh, I see he meant the whole form, the title made it sound like inside the form.
-
Mar 31st, 2009, 12:58 PM
#5
Thread Starter
Stack Overflow moderator
Re: Key Handling without Focus?
Sorry, I should have marked it resolved sooner... I used GetAsyncKeyState instead with a Timer. Really sorry. :embarassed:
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|