Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TreeView draging nodes from one to another? .Net 2.0

Status
Not open for further replies.

Insider1984

Technical User
Feb 15, 2002
132
US
I've searched the forum with no matches to treeview and drop or drop. My apollogies for all the posts recently.

I have a populated treeview on the left of a user control. The right is to be populated by draging a node from the left into the right.

I can't even seem to get dragging to work. When I try to look at the "drag" events on a Treeview, there are many but they don't really work as I expected.

Eventually I'd like the following:

Grab a node from treeviewLeft and drag into right. I would need to know the node name and it's parents to correctly determine in the treeviewRight where it goes and which parents gets this new child. Also I'd like to get the location of the "drop" on the new form.

I don't need to know how it's done (thought sometimes that is easy). If there is a easy simple example or online "help guide" that would be great. A fair search on google didn't bring much except a bunch of custom treeview controls for profit!

=====================
Insider
4 year 'on the fly' programmer
C, C++, C#, MFC, Basic, Java ASP.NET
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top