Edit this page


RadTextBox shares most of the properties of the standard Windows Forms text box, including:

Property Description
BackColor Gets or sets the background color of the control.
ForeColor Gets or sets the fore color of the text.
Text Gets or sets the current text in the control.
CharacterCasing specifies whether the user can type upper-case, lower-case, or both.
MaxLength sets the maximum number of characters that can be typed into the control.
MultiLine controls whether multiple lines of text can be displayed in the control.
UseSystemPasswordChar Gets or sets a value indicating whether the text should appear as the default password character.
ShowClearButton Gets or sets a value indicating whether the clear button is shown.


In addition, RadTextBox has a new property not shared by the standard Windows Forms text box:

  • The NullText property specifies text to be displayed when the control has no Text value. When the control receives the focus, this text is automatically removed.

Figure 1: Using the null text.

editors-textbox-programming-radtextbox 001

Since R1 2017 RadTextBox can show a clear button when there is some text in the editor. This is controlled by the ShowClearButton property.

editors-textbox-programming-radtextbox 002

See Also