Returns or sets a value indicating whether a TextBox control can accept and display multiple lines of text. Read-only at run time.
object.MultiLine
The object placeholder represents an object expression that evaluates to an object.
The MultiLine property settings are described in the following table.
Setting | Description |
---|---|
True | Allows multiple lines of text. |
False | (Default). Ignores carriage returns and restricts data to a single line. |
A multiple-line TextBox control wraps text as the user types text extending beyond the text box.
You can also add scroll bars to larger TextBox controls using the ScrollBars property. If no horizontal scroll bar is specified, the text in a multiple-line TextBox automatically wraps.
Note On a form with no default button, pressing ENTER in a multiple-line TextBox control moves the focus to the next line. If a default button exists, you must press CTRL+ENTER to move to the next line.