Don't do any of the suggested solutions, including OKL. Setup a menu with a hotkey. This allows both keyboard and mouse access to the functionality.
>Hi.
>I want to set a screen level On Key label, so that the user can hit a Function key to carry out a particular option.
>I have code in the init like:
>On Key Lablel F4 Thisform.MyMethod and I have a Method as:
>
>** MyMethod ****
>Take Some Action
>
>(Note that MyMethod is also called from other controls within the form)
>
>I get a Thisform can only be used within a Method.
>
>Anybody got a solution for this ?
>regards,
>Gerard
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer