Add "ON KEY LABEL F8 *" to the lostfocus event of your form
>Dear Experts
>
>In my project I use Ten Forms. One of them has following codes on keypress event
>
>ON KEY LABEL F8 DO FORM OTPTPOS.SCX
>
>
>On that form when I press F8 then form OTPTPOS.SCX runs.
>But the problem is this command is automatically activated on total ten forms.
>
>I want the command ON KEY LABEL must work only on that form where I wrote it.
>
>Please help