>How to use On key label eg. F1 to run a method in form?
>
>TIA
I agree with Marcia's assessment - and OKL are rarely required any more, with all the VFP events now available. Apart from KeyPress, you can use Click, RightClick, and many more, depending on the situation.
You can also, for instance, use F3 as a shortcut to a menu command. Combine this with the syntax Vlad gave you.
Hilmar.
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)