Image Drag and Drop using C#
AllowDrop Property set to True in which control you have to drag the image.
Here is I'm going to drag an image from a picture box in to a panel.
Set AllowDrop property to True for panel control.
In picturebox mouse down event, write the code as follows,
pictureBox1 = (PictureBox)sender;
In panel Drag_DragEnter event, write the following,
e.Effect = DragDropEffects.Copy;
e.Effect = DragDropEffects.None;
In panel Drag_DragDrop event, write the following,
Panel pnlDroggedTheme = (Panel)sender;
pnlDroggedTheme.Height = panel1.Height;
pnlDroggedTheme.Width = panel1.Width;
pnlDroggedTheme.BackgroundImage = (Bitmap)e.Data.GetData(typeof(Bitmap));
Run the program, that's it...