System.Windows.Forms.TextBox.AcceptsReturn Property

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.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool AcceptsReturn { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the value of this property is false, the user must press CTRL+ENTER to create a new line in a multiline System.Windows.Forms.TextBox control. If there is no default button for the form, the ENTER key will always create a new line of text in the control, regardless of the value of this property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0