ToolStripItem::DragDrop Event

 

Occurs when the user drags an item and the user releases the mouse button, indicating that the item should be dropped into this item.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
[BrowsableAttribute(false)]
event DragEventHandler^ DragDrop {
	void add(DragEventHandler^ value);
	void remove(DragEventHandler^ value);
}

The X and Y properties of the DragEventArgs are in screen coordinates, not client coordinates. For more information about handling events, see Handling and Raising Events.

The following code example shows how to convert the X and Y properties to a client Point. This code example is part of a larger example provided for the ToolStripRenderer class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: