Lo,
since a toolbar can not receive focus, you can not assign a hotkey to it.
Simple solution:
generate a menu that does the same as the toolbar (for example: the menu command "clicks" the toolbar button) and assign the keys to the menu
I would not recomend ESC to something like this, because ESC is the CANCEL function in a form and should be assigned to forms Cancel button (Cancel property of a button)
[<><]
>Hi
>I want assign some hot key to the Form Toolbar Button,
>such as ALT-N assign for New button, ALT-E assign for Edit Button, ESC Key
>for quit the form, etc..
>
>
>Please advise.
>
>Derek Yim
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]