This documentation is archived and is not being maintained.

OLEDropMode Property (ActiveX Controls)

Visual Studio .NET 2003

Returns or sets how a target component handles drop operations.


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.


The settings for mode are:

Constant Value Description
xxxOLEDropNone 0 None. The target component does not accept OLE drops and displays the No Drop cursor.
xxxOLEDropManual 1 Manual. The target component triggers the OLE drop events, allowing the programmer to handle the OLE drop operation in code.
xxxOLEDropAutomatic 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 xxxOLEDropAutomatic.


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.

See Also

Applies To: Masked Edit Control | MSChart Control