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

DragBehavior Property

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

Specifies whether the system enables the drag-and-drop feature for a TextBox or ComboBox. Syntaxobject. DragBehavior [= fmDragBehavior ] The DragBehavior property syntax has these parts:

objectRequired. A valid object.
fmDragBehaviorOptional. Specifies whether the drag-and-drop feature is enabled.

Settings The settings for fmDragBehavior are:

fmDragBehaviorDisabled0Does not allow a drag-and-drop action (default).
fmDragBehaviorEnabled1Allows a drag-and-drop action.

Remarks If the DragBehavior property is enabled, dragging in a text box or combo box starts a drag-and-drop operation on the selected text. If DragBehavior is disabled, dragging in a text box or combo box selects text. The drop-down portion of a ComboBox does not support drag-and-drop processes, nor does it support selection of list items within the text. DragBehavior has no effect on a ComboBox whose Style property is set to fmStyleDropDownList.

Note You can combine the effects of the EnterFieldBehavior property and DragBehavior to create a large number of text box styles.

© 2018 Microsoft