Re: Treeview help
- From: "MikeD" <nobody@xxxxxxxxxxx>
- Date: Sat, 24 Dec 2005 17:27:49 -0500
<Fern G> wrote in message news:%23wewxjMCGHA.2644@xxxxxxxxxxxxxxxxxxxxxxx
> Can someone help me, I need to create a tree view from
> a file path ( like the folder view of Explorer )
> I have all the path components in a string array
> s() which is obtained using 'split(path,"\")'
>
> I tried this
>
> While i < UBound(s1)
> Set mynodes = mynod.Children
> Set mynod = mynodes.Add(, , s(i), s(i))
> i = i + 1
> Wend
>
> but I think the children property does not actually return a nodes of a
> node.
No, it doesn't. If returns the number of children the node has.
You set a node's relationship with another node when you add the node. This
is done by specifying values for the first 2 arguments of the Add method.
Spend some time reading VB's Help. It explains everything you need to know
to do this.
--
Mike
Microsoft MVP Visual Basic
.
- Follow-Ups:
- Re: Treeview help
- From: Fern G
- Re: Treeview help
- References:
- Treeview help
- From: Fern G
- Treeview help
- Prev by Date: Re: Locking columns
- Next by Date: Re: Textbox Question
- Previous by thread: Treeview help
- Next by thread: Re: Treeview help
- Index(es):
Relevant Pages
|