Begins, ends, or cancels a drag operation.
Control.Drag [(nAction)] |
Parameters
- nAction
-
Indicates the action to perform. If you omit nAction, nAction is set to 1.
The settings for the Drag method are:
Setting Description 0
Cancel drag operation; restore original position of control.
1
(Default) Begin dragging the control.
2
End dragging — that is, drop the control.
Remarks
Applies To: CheckBox Control | ComboBox Control | CommandButton Control | CommandGroup Control | Container Object | Control Object (Visual FoxPro) | EditBox Control | Grid | Image Control (Visual FoxPro) | Label Control (Visual FoxPro) | Line | ListBox | OLE Bound Control | OLE Container Control | OptionButton | OptionGroup Control | Page | PageFrame Control | Shape Control | Spinner Control | TextBox Control (Visual FoxPro)
Usually, the MouseDown event procedure calls the
It's necessary to use the Drag method to control dragging only when the
If you want the mouse pointer to change while the control is being dragged, use either the