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
 
Back
Top