c# - How can I tell if a drag and drop operation failed? -


It looks as if a drag operation was successful or not, but there should not be any way. Suppose I want to "move" from source to destination. How can I say if the user releases the mouse on some app or control that can not accept the drop?

For that matter, how can I tell when the drag is completely done?

I saw, but his solution does not work for me, and e. Action is always continue .

I'm not sure that this can help you, but the DoDragDrop method returns the last DragDropEffect value is.

var ret = DoDragDrop (...); If (ret == DragDropEffects.None) // // does not succeed // etc

Comments