>Hi Hilmar
>
>That's a good idea, but I'd like to create a class to drop it into several forms. I know, however that still can be done through a class if I prepare the form class to do this when my set of buttons are present, but I wouldn't like to involve the form.
>
>I was thinking of adding lables with the required Shortcut on its caption and with its TabIndex property set in order t make the command button receiv the caption, then have the gotfocus event of the command button read the LastKey() and fire is click event if the short cut matches last key entered.
>
>Oscar Corte
As is quite often the case, it seems that here, too, Sergey has a better solution. Try it! i believe, too, that it would interfere less with your work with classes.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)