Open topic with navigation

DragAndDrop Method
Drags the mouse from and to the specified points while the specified mouse button is pressed, and then releases the mouse button.

C# Syntax

    public static void DragAndDrop(
       Point fromPoint,
       Point toPoint,
       MouseButton button
    )

Parameters

fromPoint
  The System.Drawing.Point from which to perform the drag and drop operation.
toPoint
  The System.Drawing.Point where the drag ends and the mouse button is released.
button
  Optional. The mouse button that is pressed during the drag operation. Possible Values: MouseButton. Default = MouseButton.Left.