I have written a application which runs in the background. I want to write a code
so that, when “ctrl + Alt + Q” is pressed, i should prompt the user with a message box,
“Are you sure to log out?”. It is a c# windows application.
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 need to use PInvoke to register hot keys. Here is a post on BlackWasp and this one by Christian detailing the process.