Behavior Settings in Windows Forms TextBox (TextBoxExt)

The behavior settings of the TextBoxExt control are discussed below.

MaxLength

You can specify the maximum number of characters that can be entered into the TextBoxExt control by using MaxLength property. The default value is 32767.

this.textBoxExt1.MaxLength = 4;               
Me.textBoxExt1.MaxLength = 4

Specify the maximum number character entered into WF TextBoxExt

ReadOnly

You can specifies whether the text can be changed or not in TextBoxExt control by using ReadOnly property.

this.textBoxExt1.ReadOnly = true;
Me.textBoxExt1.ReadOnly = True

Specify whether the text changed or not in WF TextBoxExt