How to Drag a image from a pictureBox to the pictureBox

Insert a PictureBox and change its name to ImageSource and write this below code on MouseMove event handler.

private void ImageSource_MouseMove(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left & ImageSource.Image != null)
            {

                ImageSource.DoDragDrop(ImageSource.Image, DragDropEffects.All);
            }
        }

Insert a PictureBox and change its name to ImageDest and write this below code on DragEnter event handler.
Continue reading How to Drag a image from a pictureBox to the pictureBox