Initiates an OLE drag & drop operation.
| VB | object.OLEDrag |
object
The OLEDrag method initiates an OLE drag & drop operation.
When the OLEDrag method is called, the OLEStartDrag event occurs, allowing the application to supply data to a target component.
An application invokes an OLE drag & drop operation explicitly using the OLEDrag method.
See Reorder Sample
Private Sub SftTabs1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal xPos As Single, ByVal yPos As Single)
Dim TabIndex As Integer
If StartTabIndex >= 0 Then
' previously we saw a MouseDown event
' we'll make sure the mouse has moved a reasonable distance so this
' isn't too sensitive
If Abs(xPos - StartX) > 40 Or Abs(yPos - StartY) > 40 Then
' moved quite a bit, start dragging
SftTabs1.OLEDrag
End If
End If
End Sub
Private Sub SftTabs1_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal xPos As Single, ByVal yPos As Single)
' the mouse button was released
StartTabIndex = -1See Also SftTabs Object | Object Hierarchy