This documentation is archived and is not being maintained.

Control.TabIndex Property

Gets or sets the tab order of the control within its container.

[Visual Basic]
Public Property TabIndex As Integer
public int TabIndex {get; set;}
public: __property int get_TabIndex();
public: __property void set_TabIndex(int);
public function get TabIndex() : int;
public function set TabIndex(int);

Property Value

The index value of the control within the set of controls within its container that are included in the tab order.


A tab index can consist of any valid integer greater than or equal to zero, lower numbers being earlier in the tab order. If more than one control on the same parent control has the same tab index, the z-order of the controls determines the order to cycle through the controls.

For a control to be included in the tab order, its TabStop property must be set to true.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Control Class | Control Members | System.Windows.Forms Namespace | UpdateZOrder | TabStop