>In my form class I emulate the behavior of what I've had in FPD, which
>reacted on F3 and F4. In the form class init, I have
>
>on key label f3 _screen.activeform.f3f4(3)
>on key label f4 _screen.activeform.f3f4(4)
>
>
>Maybe I should move it to form's Activate, and also dismiss in any
>proper place (it gets dismissed in Unload now)... which event fires if
>the form's window is not the active window anymore?
Dragan,
OKL's will burn you!!!!!! They interrupt running code when they are pressed. Instead of doing what you are doing look at my earlier reply in this thread and use the form's JeyPress event to trap the keystrokes and act on them. Thisw ay the keystorkes are only processed when no code is running and only when that form has focus.