Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ESC for exit the Form
Message
From
30/03/2000 18:06:54
 
 
To
30/03/2000 18:02:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00352969
Message ID:
00352973
Views:
11
>The user can close the form with CTRL+F4 or clicking the upper right corner or object with "ThisForm.release()" code. How could I make that the "ESC" would have the same effect?

Do you have a command button that closes the form? A button with the "Cancel" property set to .T. will automatically fire when the Esc key is hit. Or you could use the KeyPress property and wait for KeyCode 27 (You'll want to set the KeyPreview property in this case). Or you could use ON KEY LABEL or ON ESCAPE, but those would be the older ways of things, not very clean either.
Previous
Reply
Map
View

Click here to load this message in the networking platform