Jerry,
In the caption of the commandButton, put:
<\MyCaption
The letter immediately after the backslash will be underlined...in this example pressing Alt-M will click the button.
>Using VFP8.
>
>Is there any way to define a key combination to call a command button's click event?
>
>I know I can define an ON KEY LABEL, but I only want that key combo available in myform.scx.
>
>I have also tried the form's keypress event but if a grid on the form has focus, the form's keypress doesn't seem to fire.
>
>Any ideas?
>
>Thanks,
>
>Jerry
Steve Gibson