Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress with F1 and F10
Message
From
14/08/2001 09:16:33
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
14/08/2001 07:02:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00543404
Message ID:
00543458
Views:
20
>Hi
>
>How do I make my form.keypress event capture F1 and F10 ?
>
>Form.Keypreview = .T.
>And I'm also having a menu active.

Rather than using ON KEY, I think it is safer to assign the keys (F1, etc.) as hotkeys in the menu itself, and send them to the active form, for instance:
Application.ActiveForm.ShowHelp()
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform