Windows Forms: Drag & Drop controls in C#

How to Drag & Drop controls in C# using Control.Draggable library

Step 1Click New Project, then select Visual C# on the left, then Windows and then select Windows Forms Application. Name your project "DraggableDemo" and then click OK

drag control c#Step 2: Install Control.Draggable from nuget

install Control.DraggableStep 3: Design your form as below

c# drag drop

Step 4: Add code to Form_Load event handler

private void Form1_Load(object sender, EventArgs e)
    ControlExtension.Draggable(button1, true);
    ControlExtension.Draggable(textBox1, true);
    ControlExtension.Draggable(comboBox1, true);
    ControlExtension.Draggable(checkBox1, true);
    ControlExtension.Draggable(dataGridView1, true);
    ControlExtension.Draggable(progressBar1, true);