Skip to content

TextBox

ProGraMajster edited this page Mar 28, 2026 · 1 revision

TextBox

← Back to Control Inventory

Summary

Represents a TextBox control.

Example

var textBox = new TextBox
{
    Width = 220,
    Text = "Type here"
};

Documented Properties

Name Summary
DefaultPadding No XML summary yet.
DefaultSize No XML summary yet.
MaxLength Gets or sets a value indicating the maximum length of text the TextBox can hold.
MultiLine Gets or sets a value indicating if the TextBox supports multiple lines of text.
PasswordCharacter Gets or sets a character to display instead of the actual text.
Placeholder Gets or sets text to display if the TextBox contains no text.
ReadOnly Gets or sets a value indicating if the text can be edited.
SelectionEnd Gets or sets a value indicating the end of the TextBox's selected text.
SelectionStart Gets or sets a value indicating the start of the TextBox's selected text.
Style No XML summary yet.
Text No XML summary yet.

Documented Methods

Name Summary
#ctor Initializes a new instance of the TextBox class.
Copy Copies the selected text of the TextBox to the clipboard.
Cut Copies the selected text of the TextBox to the clipboard and removes it from the TextBox.
OnDeselected No XML summary yet.
OnEnabledChanged No XML summary yet.
OnKeyDown No XML summary yet.
OnKeyPress No XML summary yet.
OnMouseDown No XML summary yet.
OnMouseMove No XML summary yet.
OnMouseUp No XML summary yet.
OnPaint No XML summary yet.
OnParentChanged No XML summary yet.
OnSizeChanged No XML summary yet.
Paste Inserts any text on the clipboard into the TextBox.
ScrollToCaret Scrolls the TextBox so that the caret is visible.

Documented Events

No documented members yet.

Notes

  • This page was generated from the public XML documentation of ModernFormsNext.
  • Base members inherited from Control, ScrollableControl, WindowBase, or other parent types may not all be repeated here.

ModernFormsNext

Clone this wiki locally