How to jump to a textbox using alt-X if i have a label with text "This is &X";

  • Thread starter Thread starter babylon
  • Start date Start date
B

babylon

The label is showing "This is X" with X underlined..
i would like to capture the "alt-x" so that it will switch the focus to the
textbox next to the label..
could anyone shows me a direction?


thx!
 
The key to get this working is the tab order of the form. Select "Tab
order" from the View menu in Visual Studio and click the controls in order
to set their tab order to the order you desire. If a label has a shortcut
key, it will pass focus to the next control in the tab order when you hit
that shortcut key. This works not only with TextBoxes but also ComboBoxes.

--
Sampy
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
 
Back
Top