Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I use an accelerator in a label to have the focus move to the textbox or control associated with that label?

0
Posted

How do I use an accelerator in a label to have the focus move to the textbox or control associated with that label?

0

Label controls, although they support the ampersand accelerator and tabindex/tabstop, never actually receive focus. When a label is activated by the mnemonic key, control moves to the control having the next higher tabindex. So, by setting the tabindex of a textbox (or control) that you want to gain focus when the label mnemonic is pressed to 1 more than tabindex of the label, focus will move to that control when the accelerator key is pressed.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123