How to undo drag and drop?

I have a drag and drop function in my application using the DragDrop event and the DoDragDrop method to start the drag and drop. The question arises: how can I capture the cancellation of a drag and drop when pressing Esc while dragging?

+3
source share
1 answer

What is intended to execute QueryContinueDrag. It rises to the drag source, when the user presses the Escape key, the e.EscapePressed property will be true. Set e.Action = DragAction.Cancel to cancel D + D.

+5
source

Source: https://habr.com/ru/post/1795410/


All Articles