tb2000,
QueryContinueDrag is fired on the source side only when the state of the
mouse or keyboard buttons is changed. It is not fired while the mouse just
moves around. There is no drag&drop event that you can use to cancel
operation when the mouse leaves the boundaries of a control. The operation
can be canceled only when the user presses/releases keyboard key or mouse
button. On the other side the target decides whether it understands the
dragged data and the drop is allowed.

Signature
HTH
Stoitcho Goutsev (100)
>I am trying to get a Event per the MSDN tutorial on
> Drag&Drop from a TreeView control.
[quoted text clipped - 12 lines]
>
> TB
tb2000 - 08 Jun 2006 17:22 GMT
Stoitcho, thanks. I just found the bug; I had the eventhandler registered to
the parent class (this.Query.... instead of treeView.Query....).
However there is an example on MSDN how to abort drag ops e.g. when moving
outside a window - you do this by passing the cancel command back in the
EventArgs of exactly the query event.
And in my case I am now getting the event just by moving the mouse.
Well, and anyways thanx again!
Theo
> tb2000,
> QueryContinueDrag is fired on the source side only when the state of the
[quoted text clipped - 21 lines]
> >
> > TB
LaurieAPMarsh - 05 Jul 2006 19:26 GMT
Shouldn't the QueryContinueDrag fire when the mouse button is released even
if the current effect is None? It doesn't seem to be firing for me so the
drag operation is over but my code doesn't know it.
> tb2000,
> QueryContinueDrag is fired on the source side only when the state of the
[quoted text clipped - 21 lines]
> >
> > TB