Detect ESC key pressed

  • Thread starter Thread starter Luis
  • Start date Start date
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
 
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.
 
Back
Top