How do you accept key presses when the form does not have the focus? Do you need to use a different event?
Printable View
How do you accept key presses when the form does not have the focus? Do you need to use a different event?
Set the Form's KeyPreview Property to True.
setting keypreview to true won't work.
have a look at the hotkeys link in my signature for system wide hotkeys
Oh, I see he meant the whole form, the title made it sound like inside the form.
Sorry, I should have marked it resolved sooner... I used GetAsyncKeyState instead with a Timer. Really sorry. :embarassed: