Visual Basic Reference
See Also Example Applies To
Returns or sets how a target component handles drop operations.
object.OLEDropMode [= mode]
The OLEDropMode property syntax has these parts:
|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.|
The settings for mode are:
|vbOLEDropNone||0||(Default) 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.|
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, since only one type of object can be dragged at a time.