The TreeNodeCollection class does not have a public constructor. It is
created by the TreeView class.
To create a new collection of TreeNodes for a TreeView, first create an
array of TreeNodes, next, call Nodes.Clear() on the TreeView, then use
Nodes.AddRange() to add your array of TreeNodes.
Dale Preston
MCAD, MCDBA, MCSE
"juli jul" <ju******@yahoo.com> wrote in message
news:uP*************@tk2msftngp13.phx.gbl...
Hello,
I am trying to create a TreeNodeCollection and to attach it to a tree
view. How exactly can I do it?
I am trying to do:
TreeNodeCollection tnc=new TreeNodeCollection(node);
but keep getting errors.
How can I do it?
Thank you!
*** Sent via Developersdex http://www.developersdex.com ***