Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

copying from a treeview to another

Posted on 1998-08-28
2
Medium Priority
?
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 300 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

604 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