I have the following Problem, and can't find a solution for it:
My Application is a Windows-Forms Application and is using Drag&Drop to move Files from one MDI-Child-Window to an other MDI-Child-Window.
The DoDragDrop is done using the following code:
DragDropEffects allowedEffecs = DragDropEffects.Copy | DragDropEffects.Move;
DataObject dataObject = new DataObject(dgv.SelectedRows);
DragDropEffects dropEffect = dgv.DoDragDrop(dataObject, allowedEffecs);
What I want to do, If the user tries to drag items out of the MDI-Parent, (eg. into Windows-Explorer) I want to change the allowedEffects from Copy and Move to Copy only. (Inside my Applications both Copy and Move should be possible, dragging outside
only Copy should be possible)
is there a way for doing this?
View Complete Post