OLEDragMode Property
Description
Returns or sets whether the component or the programmer handles an OLE drag/drop operation.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property OLEDragMode() As [OLEDragConstants](XtremeSuiteControls~Enumerations~OLEDragConstants_EN.md)
Remarks
When OLEDragMode is set to Manual, you must call the OLEDrag method to start dragging, which then triggers the OLEStartDrag event.
When OLEDragMode is set to Automatic, the source component fills the DataObject object with the data it contains and sets the Data parameter before initiating the OLEStartDrag event when the user attempts to drag out of the control. This gives you control over the drag/drop operation and allows you to intercede by adding other formats, or by overriding or disabling the automatic data and formats using the Clear or SetData methods.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.