Set the tab order of controls on a form
This task has been onerous in classic VB since its inception.
VB uses a property called TabIndex to determine the order in which the focus moves from control to control as you press the tab key. The best way to set the tab order for multiple controls was to start with the control you wanted to be last in the tab order, and work your way toward the first control, assigning a TabIndex of 0 each time.
In contrast, in VB.NET, you set the tab order by clicking the Tab Order item on the View menu. You see a display like Figure 1
. Next, click each of the controls in the preferred tab order. As you click the controls, the tab order numbers change. For example, if you wanted the tab order to move left to right, top to bottom, the form would look like Figure 2
when you finish.