Documentation for this section has not yet been entered.
A multiline text box allows you to display more than one line of text in the control. If the TextBoxBase.WordWrap property is set to true, text entered into the multiline text box is wrapped to the next line in the control. If the TextBoxBase.WordWrap property is set to false, text entered into the multiline text box control will be displayed on the same line until a newline character is entered.
The following can be used as newline characters:
ControlChars.CrLf
vbCrLf (Visual Basic only)
You can add scroll bars to a text box using the TextBox.ScrollBars property to display horizontal and/or vertical scroll bars. This allows the user to scroll through the text that extends beyond the dimensions of the control.
Because the default value of the TextBoxBase.Multiline property is false, the default size of a System.Windows.Forms.TextBox will be in accordance with the font size even if you resize the System.Windows.Forms.TextBox. To get a consistent size for your System.Windows.Forms.TextBox, set its TextBox.Multiline property to true.
On Japanese operating systems, if the TextBoxBase.Multiline property is set to true, setting the TextBox.PasswordChar property will display the text of the password, thus compromising system security. Therefore, on Japanese operating systems, set the TextBoxBase.Multiline property to false if you set the TextBox.PasswordChar property.
This property is set to false by default for all derived classes, with the exception of the System.Windows.Forms.RichTextBox control.
For a System.Windows.Forms.RichTextBox control, the RichTextBox.Multiline property affects whether or not the control will automatically resize, as follows:
If RichTextBox.AutoSize is set to true and RichTextBox.Multiline is set to true, System.Windows.Forms.RichTextBox will not automatically resize.
If RichTextBox.AutoSize is set to true and RichTextBox.Multiline is set to false, System.Windows.Forms.RichTextBox will automatically resize.