Drag-and-Drop Operations and Clipboard Support
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Drag-and-Drop Operations and Clipboard Support 

You can enable user drag-and-drop operations within a Windows-based application by handling a series of events, most notably the DragEnter, DragLeave, and DragDrop events.

You can also implement user cut/copy/paste support and user data transfer to the Clipboard within your Windows-based applications by using simple method calls.

In This Section

Walkthrough: Performing a Drag-and-Drop Operation in Windows Forms

Explains how to start a drag-and-drop operation.

How to: Perform Drag-and-Drop Operations Between Applications

Illustrates how to accomplish drag-and-drop operations across applications.

How to: Add Data to the Clipboard

Describes a way to programmatically insert information on the Clipboard.

How to: Retrieve Data from the Clipboard

Describes how to access the data stored on the Clipboard.

Related Sections

Drag-and-Drop Functionality in Windows Forms

Describes the methods, events, and classes used to implement drag-and-drop behavior.

QueryContinueDrag

Describes the intricacies of the event that asks permission to continue the drag operation.

DoDragDrop

Describes the intricacies of the method that is central to beginning a drag operation.

Clipboard

Show:
© 2016 Microsoft