Begins a drag operation. The allowedEffects determine which drag operations can occur. If the drag operation needs to interop with applications in another process, data should either be a base managed class (String, Bitmap, or Metafile) or some Object that implements System.ComponentModel.IPersistable. data can also be any Object that implements System.WinForms.IDataObject.
[Visual Basic] Public Function DoDragDrop( _ ByVal data As Object, _ ByVal allowedEffects As DragDropEffects _ ) As DragDropEffects [C#] public DragDropEffects DoDragDrop( object data, DragDropEffects allowedEffects ); [C++] public: DragDropEffects DoDragDrop( Object* data, DragDropEffects allowedEffects ); [JScript] public function DoDragDrop( data : Object, allowedEffects : DragDropEffects ) : DragDropEffects;
final effect of the drag operation. Usually DragDropEffect.NONE, DragDropEffect.COPY, or DragDropEffect.MOVE.
RichControl Class | RichControl Members | System.WinForms Namespace