Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close form by pressing ESC
Message
From
18/03/2012 19:18:27
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01538616
Message ID:
01538617
Views:
72
I don't know if it will work, but you should ALWAYS have a way to do things with the mouse. Put a command button on the form and set it's cancel property to .T.

>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.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform