
Shortcut keys to access controls/fields
Use the ampersand in the label's Caption property, for example
Label1.Caption = "&My Label". This will cause the label caption to be
displayed with an underscore below the letter "M" (in this particular case).
Also, the Label's UseMnemonic property needs to be set to True (this is the
default value, so you shouldn't need to expressly set it to True). In this
particular case, when the user presses Alt M then focus will be shifted to
whatever Control immediately follows the Label Control in the Tab order. So,
for example, if the Label's TabIndex property is set to 3 and Text Box1's
TabIndex property is set to 4 then pressing Alt M will shift focus to
TextBox1.
Mike
Quote:
> In Microsoft Acess You can easy link an label and an textfield. So if
> the user presses Alt+<Letter>, then a certain field will get focus.
> How is that done in VB ?
> Thank You very much for Your answer
> Anders
> Sent via Deja.com http://www.deja.com/
> Before you buy.