System.Windows.Forms.DragEventArgs Class

Provides data for the Control.DragDrop, Control.DragEnter, or Control.DragOver event.

See Also: DragEventArgs Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class DragEventArgs : EventArgs

Remarks

The Control.DragDrop event occurs when the user completes a drag-and-drop operation by dragging an object over the control and then dropping it onto the control by releasing the mouse button. The Control.DragEnter event occurs when the user moves the mouse pointer onto the control while dragging an object with the mouse. The Control.DragOver event occurs when the user moves the mouse pointer over the control while dragging an object with the mouse.

A System.Windows.Forms.DragEventArgs object specifies any data associated with this event; the current state of the SHIFT, CTRL, and ALT keys; the location of the mouse pointer; and the drag-and-drop effects allowed by the source and target of the drag event.

For information about the event model, see [<topic://cpconEventsDelegates>].

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0