We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Prevent node drag in TreeViewAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

5356 Jun 30,2003 03:44 PM May 8,2004 06:50 PM Windows Forms 5
loading
Tags: Tools
Sean Greer
Asked On June 30, 2003 03:44 PM

First of all, thanks for the TreeViewAdv, it's a really nice control as it is, and I'm sure it will keep getting better. Question: how can I prevent the dragging of nodes within the control? I seem to be missing the AllowDrag property (or something like that). I don't want the user to be able to rearrange nodes, and with out a property on the control or a cancelable event (BeforeDrag), I can't see how to prevent that. Another thing that would be cool: I'm using the right images as indicators and I'd like to associate tip text with each image. Any quick pointers on how (or if) this can be done? Sean

Neal Granroth
Replied On July 1, 2003 08:51 AM

> Question: how can I prevent the dragging of nodes within the control? - Implement a handler for the QueryContinueDrag event. - Within it, set e.Action = Drag.Cancel Hope this helps. Neal

Todd Armstrong
Replied On January 26, 2004 09:05 PM

Where does the Drag.Cancel come from. I don''t have a reference to it and want to do the same thing. > >> Question: how can I prevent the dragging of nodes within the control? > >- Implement a handler for the QueryContinueDrag event. > >- Within it, set e.Action = Drag.Cancel > > >Hope this helps. >Neal

Todd Armstrong
Replied On January 26, 2004 09:14 PM

I figured it out. It should be: e.Action = DragAction.Cancel; >Where does the Drag.Cancel come from. I don''t have a reference to it and want to do the same thing. > >> >>> Question: how can I prevent the dragging of nodes within the control? >> >>- Implement a handler for the QueryContinueDrag event. >> >>- Within it, set e.Action = Drag.Cancel >> >> >>Hope this helps. >>Neal

Jack Rubin
Replied On May 8, 2004 06:47 PM

Please contact me regarding H8 emulators (Dave x2). Thanks!

Jack Rubin
Replied On May 8, 2004 06:50 PM

In case the subject of the prior msg is not displayed, this note is to Neal Granroth. >Please contact me regarding H8 emulators (Dave x2). Thanks! Jack Rubin www.sebhc.org

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;