TabKeyBehavior Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
https://msdn.microsoft.com/en-us/library/cc349284(v=office.10)
Determines whether tabs are allowed in the edit region.
Syntax
object.TabKeyBehavior [= Boolean]
The TabKeyBehavior property syntax has these parts:
Part | Description |
---|---|
object | Required. A valid object. |
Boolean | Optional. The effect of pressing TAB. |
Settings
The settings for Boolean are:
Value | Description |
---|---|
True | Pressing TAB inserts a tab character in the edit region. |
False | Pressing TAB moves the focus to the next object in the tab order (default). |
Remarks
The TabKeyBehavior and MultiLine properties are closely related. The values described above only apply if MultiLine is True. If MultiLine is False, pressing TAB always moves the to the next control in the regardless of the value of TabKeyBehavior.
The effect of pressing CTRL+TAB also depends on the value of MultiLine. If MultiLine is True, pressing CTRL+TAB creates a new line regardless of the value of TabKeyBehavior. If MultiLine is False, pressing CTRL+TAB has no effect.