I have a form that is running but not in the focus.
Now I want to press CTRL + NUM1 so the form which is not in the foreground catches it.
How can I achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It should be possible with a keyboard hook, which your application installs when it starts up and remove it on an app close.
This should get you started, you need to know/understand fundamentals of Win32 API for this!
http://www.codeproject.com/Articles/7294/Processing-Global-Mouse-and-Keyboard-Hooks-in-C