Tandaan
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o baguhin ang mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Specifies whether the system enables the drag-and-drop feature for a TextBox or ComboBox.
Syntax
object.DragBehavior [= fmDragBehavior ]
The DragBehavior property syntax has these parts:
| Part | Description |
|---|---|
| object | Required. A valid object. |
| fmDragBehavior | Optional. Specifies whether the drag-and-drop feature is enabled. |
Settings
The settings for fmDragBehavior are:
| Constant | Value | Description |
|---|---|---|
| fmDragBehaviorDisabled | 0 | Does not allow a drag-and-drop action (default). |
| fmDragBehaviorEnabled | 1 | Allows 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.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.