Behavior Settings in Windows Forms TextBox (TextBoxExt)

29 Apr 20211 minute to read

The behavior settings of the TextBoxExt control are discussed below.


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


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