| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Drag-and-Drop Operations and Clipboard Support |
03/30/2017 |
.net-framework |
|
article |
|
|
7cce79b6-5835-46fd-b690-73f12ad368b2 |
14 |
dotnet-bot |
dotnetcontent |
wpickett |
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 xref:System.Windows.Forms.Control.DragEnter, xref:System.Windows.Forms.Control.DragLeave, and xref:System.Windows.Forms.Control.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.
xref:System.Windows.Forms.Control.QueryContinueDrag
Describes the intricacies of the event that asks permission to continue the drag operation.
xref:System.Windows.Forms.Control.DoDragDrop%2A
Describes the intricacies of the method that is central to beginning a drag operation.
xref:System.Windows.Forms.Clipboard
Also see How to: Send Data to the Active MDI Child.