Behavior Settings in Windows Forms TextBox (TextBoxExt)
29 Apr 20211 minute to read
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
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