Ive finished designing my form. Is there an easy way to set the desired TabIndex for the controls at design time?
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.