Returns or sets how a target component handles drop operations.
Syntax
object.OLEDropMode [= mode]
The OLEDropMode property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
mode | An enumerated integer which specifies the method which a component handles OLE drag/drop operations, as described in Settings. |
Settings
The settings for mode are:
Constant | Value | Description |
vbOLEDropNone | 0 | None. The target component does not accept OLE drops and displays the No Drop cursor. |
vbOLEDropManual | 1 | Manual. The target component triggers the OLE drop events, allowing the programmer to handle the OLE drop operation in code. |
vbOLEDropAutomatic | 2 | Automatic. The target component automatically accepts OLE drops if the DataObject object contains data in a format it recognizes. No mouse or OLE drag/drop events on the target will occur when OLEDropMode is set to vbOLEDropAutomatic. |
Remarks
Note The target component inspects what is being dragged over it in order to determine which events to trigger: the OLE drag/drop events, or the Visual Basic drag/drop events. There is no collision of components or confusion about which events are fired, because only one type of object can be dragged at a time.