Hello,
Instead using thisform, try _screen.activeform.
Bob
>Hello
>
>what is the best way to listen F1..F12 keys on form?
>I have trouble with F1 key. The Help is opened always when I press F1. If I
>use
>"ON KEY LABEL F1 *" then KeyPress event don't work for this key. And I
>can't
>use ON KEY LABEL F1 because I want to use "this" or "thisform" object
>methods in command.
>
>please give me some hint
>
>Hendrik
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'