By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

How to trap HotKey When Form is Hidden

P: n/a
I would like to trap and use a hotkey, but my form is hidden and I cannot
use the key event from the form.

What would be the best way to do this? Any code examples would be
appreciated or pointers to explanations of the process.

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a

Because your form will be hidden, that is to say when you press the key,
the winform will not get the keydown message.
So I think you may need to use the RegisterHotKey API
Here is article for your reference.
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! -
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.