Hi
I have a form and i want when the user press the button escape the application will terminate....Better if gets a message so he can confirm if he is sure to terminate the application...
Thanks
Printable View
Hi
I have a form and i want when the user press the button escape the application will terminate....Better if gets a message so he can confirm if he is sure to terminate the application...
Thanks
What is the application code using ? C/C++ or VB or .Net ?
Well you just need to get the keyboard input in you application and check if ESC key is pressed.
Just look for VK_ESCAPE in the WM_KEYDOWN: message in your callback function.
You can do whatever you want before you send WM_CLOSE message to terminate the application(if you want to do it when user presses ESC key)