Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Escape
Message
From
15/04/2002 10:57:08
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
15/04/2002 00:34:44
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00644916
Message ID:
00645019
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
I have a Form subclass used for some applications, and to allow 'ease-of-exit' via Escape Key I use the following Form code:

Proc nKeyPress
DoDefault()
If nKeyCode = 27 && Escape key
THISFORM.Release()
Endif

...and set the Form's Keypreview property to .T.

HTH,
Previous
Reply
Map
View

Click here to load this message in the networking platform