Mnemonic selection

  • Thread starter Thread starter Grant
  • Start date Start date
G

Grant

Gday,

My form has a text box and a label. The label is next to the textbox and has
a mnemonic set for the first letter. My question is how to highlight the
textbox when the user selects the mnemonic for the label?

Thanks,
Grant
 
Also forgot to ask how to get those shortcut mnemonics to display on the
form without having to press the 'ALT' key.

cheers,
Grant
 
Use the Focus method of the control to set the focus, eg.
textBox1.Focus();
Is the UseMnemonic property of the label set to true?

HTH

John
 
That's a Windows setting introduced, IIRC in W2K.

I can't remember where it is in other OS's, but in W2K3 it's on Display
Properties, Appearance tab, Effects button, where it shows as 'Hide underlined
letters for keyboard navigation until I press the Alt key'.

Simon Smith
simon dot s at ghytred dot com
www.ghytred.com/NewsLook - NNTP Client for Outlook
 
Back
Top