Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Control.TabIndex Property

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

[Visual Basic]
Public Property TabIndex As Integer
[C#]
public int TabIndex {get; set;}
[C++]
public: __property int get_TabIndex();
public: __property void set_TabIndex(int);
[JScript]
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.

Remarks

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.

Requirements

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

Show:
© 2015 Microsoft