TextBoxState Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies the visual state of a text box that is drawn with visual styles.

Namespace:   System.Windows.Forms.VisualStyles
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public enum TextBoxState

Member nameDescription
Assist

The text box appears in assist mode.

Disabled

The text box appears disabled.

Hot

The text box appears hot.

Normal

The text box appears normal.

Readonly

The text box appears read-only.

Selected

The text box appears selected.

The TextBoxState values correspond to the states of the VisualStyleElement objects exposed by the VisualStyleElement.TextBox.TextEdit class. The TextBoxState values are also used as an argument in the TextBoxRenderer.DrawTextBox method.

.NET Framework
Available since 2.0
Return to top
Show: