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.

private void ImageDest_DragEnter(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(DataFormats.Bitmap))
            {
                e.Effect = DragDropEffects.Copy;
            }
            else
                e.Effect = DragDropEffects.None;
        }

Write this below code on DragDropevent handler.

private void ImageDest_DragDrop(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(DataFormats.Bitmap))
            {
               ImageDest.Image = (Image)e.Data.GetData(DataFormats.Bitmap);
            }
        }