Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape key discard control changes
Message
From
05/06/1998 13:43:11
 
 
To
05/06/1998 13:39:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00105232
Message ID:
00105250
Views:
23
>
>The advantage of 'Cancel' button is exactly what you seemingly don't like: going around last control Valid event. So, you can just go to Form.Keypress event, check for ESC there and run you code to close the form, etc.

I have some forms with this way to close it: the keypress event of the form and the keypreview property of the form. But i've not tested if changes mades in last control are validated. Are they?
If you don't want, dont answer me. I'll test it. Thanks a lot.
Saludos,
A.G.P.
---------
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform