Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make form respond to Escape
Message
From
28/01/2005 08:59:15
 
 
To
28/01/2005 08:19:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00981662
Message ID:
00981679
Views:
39
Problem was fixed by adding Thisform.PageFrame1.Page1.Command2.SetFocus() in Thisform.Init().

Maybe problem was created because there is an OleControl in page1?

Thanks,

Alex

>Hi,
>
>A form has a pageframe an in a page a command button for which I set Cancel .T., wishing it to respond to escape key. However, the escape key does not cause the commandbutton click to fire. Next I added code in Thisform.KeyPress and Thisform.KeyPreview = .T., but still no response to Escape key.
>
>What am doing wrong?
>
>Thanks,
>
>Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform