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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top