It's better to use Keypress Event of a form. Don't forget to set property KeyPreview=.T.
>how can I use the function keys in the app? I have a button: cmdPrint1, hotkey: Alt+P.
>I want to use F8, I tried:
>
>ON KEY LABEL F8 ALT+P
>ON KEY LABEL F8 cmdPrint1.click
>
>with no luck.
--sb--