Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2006

Tip: Looking for answers? Try searching our database.

TreeView missing QueryContinue..Event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tb2000 - 07 Jun 2006 22:16 GMT
I am trying to get a QueryContinueDragEvent per the MSDN tutorial on
Drag&Drop from a TreeView control.
My TreeView is at the same time source and destination (basically I am
trying to manually rearrange nodes). I try to abort the D&D when outside the
main form but I can not get the Query.. Event to fire; any ideas what's can
be wrong?

I've already installed handlers/subscribes for most (Ithink) related events
but no luck so far...

Thanks ahead!

TB
Stoitcho Goutsev (100) - 08 Jun 2006 14:33 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.