Begins a drag-and-drop operation.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function DoDragDrop( _
ByVal data As System.Object, _
ByVal allowedEffects As System.Windows.Forms.DragDropEffects _
) As System.Windows.Forms.DragDropEffects |
| C# | |
|---|
public System.Windows.Forms.DragDropEffects DoDragDrop(
System.object data,
System.Windows.Forms.DragDropEffects allowedEffects
) |
Parameters
- data
- The data to drag.
- allowedEffects
- One of the System.Windows.Forms.DragDropEffects values.
Return Value
A value from the
System.Windows.Forms.DragDropEffects enumeration that represents the final effect that was performed during the drag-and-drop operation.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also