Solved

copying from a treeview to another

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

839 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