Solved

copying from a treeview to another

Posted on 1998-08-28
2
157 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

746 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

9 Experts available now in Live!

Get 1:1 Help Now