AutoTab Property

Applies To

ComboBox control, TextBox control.

Description

Specifies whether an automatic tab occurs when a user enters the maximum allowable number of characters into a TextBox or the text box portion of a ComboBox.

Syntax

object.AutoTab [= Boolean]

The AutoTab property syntax has these parts:

Part

Description

object

Required. A valid object.

Boolean

Optional. Specifies whether an automatic tab occurs.


Settings

The settings for Boolean are:

Value

Description

True

Tab occurs.

False

Tab does not occur (default).


Remarks

The MaxLength property specifies the maximum number of characters allowed in a TextBox or the text box portion of a ComboBox.

You can specify the AutoTab property for a TextBox or ComboBox on a form for which you usually enter a set number of characters. Once a user enters the maximum number of characters, the focus automatically moves to the next control in the tab order. For example, if a TextBox displays inventory stock numbers that are always five characters long, you can use MaxLength to specify the maximum number of characters to enter into the TextBox and AutoTab to automatically tab to the next control after the user enters five characters.

Support for AutoTab varies from one application to another. Not all containers support this property.

See Also

MaxLength property.