Search code examples
c#drag-and-dropcopymoveeffects

What's the difference between DragDropEffects.Copy and DragDropEffects.Move?


I have looked all over the internet for an answer to this question and I cannot seem to find it.

What's the difference between DragDropEffects.Copy and DragDropEffects.Move?

In my code on the DragEnter I set it to:

private void Canvas_DragEnter(object sender, DragEventArgs e)
    {
        if (e.Data.GetDataPresent(DataFormats.FileDrop))
            e.Effect = DragDropEffects.Move;
    }

But if I use

private void Canvas_DragEnter(object sender, DragEventArgs e)
    {
        if (e.Data.GetDataPresent(DataFormats.FileDrop))
            e.Effect = DragDropEffects.Copy;
    }

There is no difference in the program.

Could someone please explain the difference?


Solution

  • They provide different mouse cursors, if you have Allow Drop enabled on the target.