ToolStripTextBox::AcceptsReturn Property
Gets or sets a value indicating whether pressing ENTER in a multiline TextBox control creates a new line of text in the control or activates the default button for the form.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Booleantrue if the ENTER key creates a new line of text in a multiline version of the control; false if the ENTER key activates the default button for the form. The default is false.
If the value of this property is false, the user must press CTRL+ENTER to create a new line in a multiline ToolStripTextBox control. If there is no default button for the form, then the ENTER key will always create a new line of text in the control, no matter what the value of this property.
The following code example demonstrates the syntax for setting various ToolStripTextBox common property settings, including the AcceptsReturn property .
Available since 2.0