Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I make ESCAPE close a form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00397900
Message ID:
00397911
Views:
14
>How do I make the ESCape key close a form? I suppose I could put an invisible button on the form with escape as the default. Is that the best way. I tried to use ON ESCAPE but couldn't get it to work.

Create a button that closes your form and set it's Cancel property to .T. The button can simply issue a Thisform.Release in the click event.
Paul G Brown, MCSD
Paul G Brown
paul@paulgbrown.com
Previous
Reply
Map
View

Click here to load this message in the networking platform