There is a post to set system-wide global hotkey in C#
here
I want to set application-wide hotkey such that if user presses a hotkey on any child window of an application, a particular window will receive and process it.
Thanks.
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.
You can create a base form for your application and set keypreview property to true and handle keydown event so all your forms will have the same key definition.
You also can use the following routine to register a hotkey for your forms but in this method, you will require to call same method on load event of each form.
You also can use the following unmanaged methods from user32.dll but of course i would not suggest that.