Reputation: 8350
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.
Upvotes: 1
Views: 448
Reputation: 40497
You need to use PInvoke to register hot keys. Here is a post on BlackWasp and this one by Christian detailing the process.
Upvotes: 6