Text Property

Applies To   See Also

Contains the unformatted text entered in the textbox portion of a control. Not available at design time; read-only at run time.

Syntax

Object.Text

Remarks

Unlike the Value property, the value contained in the Text property is unformatted and is identical to the text entered in the control by the user.

The unformatted text contained in a control's Text property can differ from the control's Value property for the following reasons:

If the Style property for a combo box control is set to 2 (Drop-down List), the Text property contains the empty string because the ComboBox does not have a text box.