This article describes an All-In-One Code Framework sample that is available for download. This code sample demonstrates how to enable
the drag-and-drop operation between Windows Forms controls.
Difficulty level

Download information
To download this code sample, click the following link:
Technical overview
To enable the drag-and-drop operation between the
ListBox and the
TreeView controls, follow these steps:
- Open the solution and run it.
- Click on an item in the ListBox control (right side), drag it onto the TreeView control (left side).
Note For more information about how to create and deploy the sample application, see the Readme.txt file that is included in the download package.
Technology category
- Windows Forms Development
Languages
This code sample contains the following programming languages:
Language | Project Name |
Visual C# | CSWinFormDragAndDrop |
Visual Basic.NET | VBWinFormDragAndDrop |
Prerequisites
- To run this sample code, you must have the .NET Framework 3.5 installed.
- This sample code was created by using Microsoft Visual Studio 2008 with Service Pack 1.