Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close form by pressing ESC
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Close form by pressing ESC
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01538616
Message ID:
01538616
Views:
104
Hi everybody,

I have a form with Web Browser control taking all the form. I set KeyPreview property to .t. and added a code in KeyPress event
 if nKeyCode = 27
   thisform.release()
endif
However, pressing ESC doesn't close the form. Do you know how can I make this form to close on ESC?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform