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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Drag Drop from TreeViewAdv to EditControl

Thread ID:





68190 Sep 11,2007 05:34 PM UTC Sep 13,2007 08:10 PM UTC WinForms 2
Tags: Tools
Asked On September 11, 2007 05:34 PM UTC

I was wondering how to drag and drop from a TreeViewAdv control to an EditControl. I currently have the EditControl set to allow file drop. What else do I need to do?

Jisha Joy [Syncfusion]
Replied On September 13, 2007 12:47 PM UTC

Hi Allie,

Drag and Drop of TreeViiewAdv nodes is possible by using the ItemDrag event of editcontrol.Below is the sample code snippet for your reference:

//ItemDrag EventHandler
private void treeViewAdv1_ItemDrag(object sender, System.Windows.Forms.ItemDragEventArgs e)

TreeViewAdv treeViewAdv = (TreeViewAdv)sender;
TreeNodeAdv[] nodes = (TreeNodeAdv[])e.Item;
TreeNodeAdv node = nodes[0];
this.treeViewAdv1.DoDragDrop(node.Text, DragDropEffects.All);


Please refer to the attached sample that illustrates the same:

Please try with the above details and let me know if you have any questions.


Replied On September 13, 2007 08:10 PM UTC

That works, thank you!


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon