HOW CAN A USER CANCEL A DRAG AND DROP OPERATION IN VISUAL BASIC?
Posted on 2006-05-21
I have set my control for manual drag and drop,
in the mouse move event, i check to see if the left mouse button is down and immediately call Drag method to initiate a drag and drop operation.
While the user is dragging the control, how do i code it so that if the user clicks the escape key (or perhaps the right mouse button), the drag and drop is cancelled completely (ie no further DragOver or DragDrop event will be called until I once again initiate the whole sequence over with another call to Drag
During drag and drop all mouse events seem to be turned off untill the end of the drag and drop operation so i am not even sure if i can cancel the drag and drop with a right mouse click. --If it is too difficult, I will settle for the escape key :)
Hope this makes sense