System.Windows.Forms.TextBox: Property Members

The properties of System.Windows.Forms.TextBox are listed below. For a list of all members, see the TextBox Members list.

See Also: Inherited members from System.Windows.Forms.TextBoxBase

Public Properties

AcceptsReturnbool.

Gets or sets a value indicating whether pressing ENTER in a multiline System.Windows.Forms.TextBox control creates a new line of text in the control or activates the default button for the form.

AutoCompleteCustomSourceAutoCompleteStringCollection.

Gets or sets a custom System.Collections.Specialized.StringCollection to use when the TextBox.AutoCompleteSource property is set to CustomSource.

AutoCompleteModeAutoCompleteMode.

Gets or sets an option that controls how automatic completion works for the System.Windows.Forms.TextBox.

AutoCompleteSourceAutoCompleteSource.

Gets or sets a value specifying the source of complete strings used for automatic completion.

CharacterCasingCharacterCasing.

Gets or sets whether the System.Windows.Forms.TextBox control modifies the case of characters as they are typed.

override
Multilinebool.

Gets or sets a value indicating whether this is a multiline System.Windows.Forms.TextBox control.

PasswordCharchar.

Gets or sets the character used to mask characters of a password in a single-line System.Windows.Forms.TextBox control.

ScrollBarsScrollBars.

Gets or sets which scroll bars should appear in a multiline System.Windows.Forms.TextBox control.

SelectionLengthint. Documentation for this section has not yet been entered.
override
Textstring.

Gets or sets the current text in the System.Windows.Forms.TextBox.

TextAlignHorizontalAlignment.

Gets or sets how text is aligned in a System.Windows.Forms.TextBox control.

UseSystemPasswordCharbool.

Gets or sets a value indicating whether the text in the System.Windows.Forms.TextBox control should appear as the default password character.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Gets the required creation parameters when the control handle is created.

[read-only]
DefaultImeModeImeMode. Documentation for this section has not yet been entered.