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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy Treeview nodes.children to another node

Status
Not open for further replies.

Phi1Smith

Programmer
Jun 5, 2001
33
0
0
GB
HI

Does anyone now how to referance all the children of a node & all their children etc.
I'm trying to a copy branch of a treeview to another node.

Copying just 1 node is easy but getting all the sub levels has stumped me.

Thanks guys

Phil
 
Hi,

for this job, you must use a recursive function (a function that call's itself, testing if all nodes in this node has been processed, and if it has subnodes, process again...

I hope this help you.

Ps: If needed, i'll provide to you the code ( i must search it), but it is a good programming exercise.

Carlos Paiva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top