Table of contents
TOC
Collapse the table of content
Expand the table of content

EnterKeyBehavior Property

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Defines the effect of pressing ENTER in a TextBox. Syntaxobject. EnterKeyBehavior [= Boolean ] The EnterKeyBehavior property syntax has these parts:

PartDescription
objectRequired. A valid object.
BooleanOptional. Specifies the effect of pressing ENTER.

Settings The settings for Boolean are:

ValueDescription
TruePressing ENTER creates a new line.
FalsePressing ENTER moves the focus to the next object in the tab order (default).

Remarks The EnterKeyBehavior and MultiLine properties are closely related. The values described above only apply if MultiLine is True. If MultiLine is False, pressing ENTER always moves thefocus to the next control in thetab order regardless of the value of EnterKeyBehavior. The effect of pressing CTRL+ENTER also depends on the value of MultiLine. If MultiLine is True, pressing CTRL+ENTER creates a new line regardless of the value of EnterKeyBehavior. If MultiLine is False, pressing CTRL+ENTER has no effect.

© 2018 Microsoft