closing form when pressing escape key

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Please, Any one help me in closing the form when the key escape is pressed
I tried applicaton on key but doesn"t close it
(I tried onkey ecape botton to open form and it works well. I don't know why
it did't work with closing form)
thanks
 
Place a button on the form with the code "Unload Me" in it, the set the
"Cancel" property of the button to true. This will fire that button event if
the Esc key is pressed.

HTH
 

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

Back
Top