System.Windows.Forms.TextBox Members

The members of System.Windows.Forms.TextBox are listed below.

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

Public Constructors

Initializes a new instance of the System.Windows.Forms.TextBox class.

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.

Public Methods

Paste(string)

Sets the selected text to the specified text without clearing the undo buffer.

Protected Methods

override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.TextBox and optionally releases the managed resources.

override
IsInputKey(Keys) : bool

Determines whether the specified key is an input key or a special key that requires preprocessing.

override
OnBackColorChanged(EventArgs)

Raises the Control.BackColorChanged event.

override
OnFontChanged(EventArgs)

Raises the Control.FontChanged event.

override
OnGotFocus(EventArgs)

Raises the Control.GotFocus event.

override
OnHandleCreated(EventArgs)

Raises the Control.HandleCreated event.

override
OnHandleDestroyed(EventArgs)

Raises the Control.OnHandleDestroyed(EventArgs) event.

override
OnMouseUp(MouseEventArgs)
Documentation for this section has not yet been entered.
OnTextAlignChanged(EventArgs)

Raises the TextBox.TextAlignChanged event.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

TextAlignChanged

Occurs when the value of the TextBox.TextAlign property has changed.