0
Answer

How can i drag and drop a label/textfield in a panel?

Ask a question
grace

grace

17y
2.1k
1
how can i drag and drop a component in a panel? do i need the pointtoclient? will it work on a FlowLayoutPanel?

i dont know what to write in the DragDrop event for the panel. please help!

here's the code:

static void newPanel_DragDrop(object sender, DragEventArgs e)

{
}

static void newPanel_DragEnter(object sender, DragEventArgs e)
{

e.Effect = DragDropEffects.Move;
}