Detect ESC key pressed

L

Luis

Hello.
I have a form that were i want to detect when the user presses the ESC key
in order to perform some background operations.

Is there a way to do this?

Thanks.

Luis
 
R

Rick Brandt

Luis said:
Hello.
I have a form that were i want to detect when the user presses the
ESC key in order to perform some background operations.

Is there a way to do this?

Thanks.

Luis

You can add a button and set its Cancel property to Yes. That will cause
its Click event code to run whenever the Escape key is pressed. You can set
the button to transparent if you don't want it to be visible.
 
Top