O'Reilly logo

Windows Forms 2.0 Programming by Michael Weinhardt, Chris Sells

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix E. Drag and Drop

NO MATTER WHAT KIND OF CONTROLS you're using or building, you often want to allow users to drag data from one and drop it on another. The communication protocol that supports this, known as drag and drop, has long been standardized and is fully supported in Windows Forms for both drag sources and drop targets. Additional support exposed by the TreeView and ListView controls provides a solid platform for building applications that exhibit behavior consistent with Windows Explorer.

Enabling Drag and Drop

Drag and Drop operations involve two elements: the drag source and the drop target.

The Drag Source

You initiate a drag-and-drop operation from a drag source, the control that contains the source data. This requires ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required