Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform Gotchas! Wow!
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00450216
Message ID:
00450416
Views:
48
Nadya,

If SET ESCAPE is OFF and you do not have a CommandButton on the form that is set to Cancel = .t., this ought to work in the form.KeyPress method:
if ( nKeyCode = 27 )
   nodefault
   this.EscapeHandler()
endif
>I'm the lurker :) How would you specify on escape in Form.KeyPreview? I'm thinking about adding new method in our thermometer class and I want to call this method on escape.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform