TreeNodesCollection

  • Thread starter Thread starter Frank Uray
  • Start date Start date
F

Frank Uray

Hi again

Having still a problem with Treenodes...

On a existing Treeview, there is a Collection
called Treeview.nodes.
How can I copy this collection to another treeview??

Thanks for any ideas.
Frank
 
Hi Frank,

You can clone the root node and add it to the another treeview.

Dim tv As TreeNode
tv = TreeView2.Nodes(0).Clone
Me.TreeView3.Nodes.Add(tv)


Hope this helps!
Bharat Patel
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.
 
Hi

Thanks for your answer.
Would it be possible to look at my question from
08. Oct. (PLEASE: Problem with TreeView...).
I still having this problem with my own TreeView
Class. It looks that there is a problem with
Overloading the Nodes.Add Function.

Best regards
Frank
 
Hi Frank,

I have replied to your other thread. Please check it out for the link to a
knowledge base article.
Well, I guess I can copy it here again so that you do not need to hunt for it.
Basically you need to follow the sample in the following KB:

311318 HOW TO: Create a Key Property for a TreeView Node in Visual Basic .NET
http://support.microsoft.com/?id=311318

Hope this helps!
Bharat Patel
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.
 
Back
Top