Tabindex Assistant

Top  Previous  Next

 VS   VB6   VBA 

The TabIndex Assistant feature allows you to easily assign the correct TabIndex property to each control in a form, usercontrol, etc.

MZ-Tools offers the following ways to show the TabIndex Assistant window:

  • The MZ-Tools | TabIndex Assistant menu.
  • The TabIndex Assistant button on the MZ-Tools - Main toolbar.
  • In Visual Studio 2015 and higher, the keyboard shortcut associated with the MZTools.TabIndexAssistant command.
  • In Visual Studio 2013 and lower, the keyboard shortcut associated with the MZTools8.TabIndexAssistant command.
  • In VB6 / VBA, the keyboard shortcut associated with the TabIndex Assistant feature.

The TabIndex Assistant window is the following:


It shows the controls of the active window (sorted by their TabIndex property), their Text property, and their full TabIndex values. Controls are also indented to reflect their parent-child relationship.

To change the TabIndex property of a control or group of controls you can:

  • Use the buttons with the up and down arrows to move the selected control one position.
  • Use the Control + Up Arrow and Control + Down Arrow keys of the keyboard to move the selected control one position.
  • Click the Automatic button. This feature uses an algorithm based on the parent-child relationship between controls and their relative position to estimate the correct TabIndex value for each control.

When you select a control in the list, the control is also selected in the designer window of the form. A very useful way to determine if the controls are sorted properly is to select the first control of the list and then with the Down Arrow key of the keyboard select the next control, checking in the designer window whether the order is correct or not.

If you check the Mark Controls With Wrong TabIndex checkbox, the controls with incorrect TabIndex properties are shown with a warning icon.


  • You can navigate the items of this window using the Previous Item / Next Item buttons on its toolbar or even if the toolwindow is not visible using the Previous Item in Last Window and Next Item in Last Window buttons on the MZ-Tools - Main toolbar, which can be associated to keyboard shortcuts. You have also the MZTools.PreviousItemLastWindow and MZTools.NextItemLastWindow commands (Visual Studio 2015 and higher) and the MZTools8.PreviousItemLastWindow and MZTools8.NextItemLastWindow commands (Visual Studio 2013 and lower).
  • Checking the Mark Controls With Wrong TabIndex checkbox can decrease the performance, so it is recommended to deactivate it while moving the items in the list.
  • If a form is read-only you can not modify the TabIndex property of its controls.
  • Controls which lack the TabIndex property are not shown in the list.
  • In Visual Studio, this feature only works with Windows Forms forms, not with WPF, Web, Silverlight or Smart Device forms.
  • In VBA, this feature doesn't work with Microsoft Access forms, it only works with VBA UserForms (Insert | UserForm menu) since MZ-Tools 8.0 is an add-in for the VBA editor and not an add-in specific for Microsoft Access.

See Also:

Review Quality

Keyboard Shortcuts Options