Help Center

OLEDropModeproperty

Returns or sets whether the control can act as an OLE drop target, either automatically or under program control.

Windowspropertydoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

PROPERTY OLEDropMode () AS OLEDropConstants
PROPERTY OLEDropMode (BYVAL dropMode AS OLEDropConstants)

Parameters

NameDescription
dropModeThe property can be set to the following values:

Description

Determines how the grid acts as a "drop target" for OLE drag-and-drop operations, such as dragging files from Windows Explorer or text from another application into the grid.

Example

' Check if files were dropped If Data.GetFormat(vbCFFiles) Then ' Drop the first file path into the current cell grid.Text = Data.Files(1) End If

Reference