Re: TreeNode Collection
- From: "DalePres" <don-t-spa-m-me@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 3 Apr 2005 09:19:56 -0500
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" <juli8024@xxxxxxxxx> wrote in message
news:uPQPLSFOFHA.244@xxxxxxxxxxxxxxxxxxxxxxx
>
> 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 ***
.
- Follow-Ups:
- Re: TreeNode Collection
- From: juli jul
- Re: TreeNode Collection
- References:
- TreeNode Collection
- From: juli jul
- TreeNode Collection
- Prev by Date: RE: TreeNode Collection
- Next by Date: Re: Seeking book recommendations
- Previous by thread: RE: TreeNode Collection
- Next by thread: Re: TreeNode Collection
- Index(es):
Relevant Pages
|