I need to quick focus the text box using Alt+Letter combination. In my form for each textbox is a label. For this label I can specify name as '&My Label' and M letter will be underlined when I press the Alt button. But how I can focus the textbox (in winforms)?
P.S. As I remember WPF has possibility to bind label with textbox. And if label get focus textbox will get focus automatically.
This works automatically. Just make sure the TextBox
you want to focus is the next one in the tab order, i.e. if the Label
has TabIndex
= 0, the TextBox
needs TabIndex
= 1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With