You need the form catch the keypress and click the key. There is a KeyPreview property.
You might consider to catch forms Keypress via bindevent to the button
Agnes
>Hi,
>Is there a way to make invisible buttons behaviour like standard buttons for hot keys?
>For example, when I have a
button.caption = "\<Search"
- then Hot key is ALT+S.
>In case with vfp standard button - when I press ALT+S - its automatically starts CLCK() event.
>In case with invisible button - its just set focus to the button and raise no click event.
>
>Any ideas,
>Thanks
>Denis
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]