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.

Ive finished designing my form. Is there an easy way to set the desired TabIndex for the controls at design time?

0
Posted

Ive finished designing my form. Is there an easy way to set the desired TabIndex for the controls at design time?

0

The easiest, sure-fire way of ensuring a user’s tabbing between controls follows a route you desire is to set the TabIndex properties of all the controls backwards! Begin with the LAST control on the form that should receive focus using the Tab key, and set that control’s TabIndex property to 0. Then move to the second-to-last control, and set that control’s TabIndex to 0. Continue backwards through all the controls setting each control’s TabIndex to 0 until you’ve assigned 0 to the first control on the form that will receive receive focus. All the tabs will be ordered ordered correctly – just run the project and hit tab to test the flow. The free mztools (www.mztools.com) also provides a gui-based tab reordering utility.

Related Questions

What is your question?

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