Solved

copying from a treeview to another

Posted on 1998-08-28
2
158 Views
Last Modified: 2010-04-30
hi
I am bluebutterfly and I have a problem.
I have a treeview and I need to copy a node from it to another treeview, I know the method "nodes.add" but in this method I need to give the data, by example: the properties text,index,relationship, etc.

Then, Does Exists something that :    treeview2.item=treeview1.item       ?????

Thanks!!!!
0
Comment
Question by:bluebutterfly
2 Comments
 

Expert Comment

by:endeavor
ID: 1431715
The short answer is no - there is no tv2.item = tv1.item.  I normally implement this using a recursive function that does a depth-first traversal of the tree structure building the target tree from the source tree.  it is a very manual process but it works.  

If you need an example I can probably put one together as an answer.
0
 

Accepted Solution

by:
bad_ima earned 100 total points
ID: 1431716
Hi
I am bad_ima and I gues I have and answer . :)
Go to http://www.mvps.org/vbnet/code/comctl/tvcopy.htm to get a copy of code.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now