>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)