Re: Select treeview node by text or key
From: Elmo Watson (sputnik75043_at_nospam.Yahoo.com)
Date: 07/20/04
- Next message: PM Guru: "Project Templates"
- Previous message: Jezebel: "Re: Select treeview node by text or key"
- In reply to: Jezebel: "Re: Select treeview node by text or key"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 20 Jul 2004 00:33:24 -0500
cool - thanks -
"Jezebel" <dwarves@heaven.com.kr> wrote in message
news:uYlPYWhbEHA.3016@tk2msftngp13.phx.gbl...
> You don't need to select it for that:
>
> Tree.Nodes(Keyname).Expanded = FALSE
>
> If you want to select it anyway, use
>
> Tree.Nodes(Keyname).Selected = TRUE
>
> You can't select directly by text. You need to iterate the tree to find
the
> node with that text. Bear in mind that, unlike the Key, there is no
> guarantee that the text is unique.
>
>
> "Elmo Watson" <sputnik75043@nospam.Yahoo.com> wrote in message
> news:etbhlPhbEHA.2352@TK2MSFTNGP09.phx.gbl...
> > How can I find (if I know the keyname or text) - how can I locate that
> > particular node and select it, so I can set that node to expanded=false?
> >
> >
>
>
- Next message: PM Guru: "Project Templates"
- Previous message: Jezebel: "Re: Select treeview node by text or key"
- In reply to: Jezebel: "Re: Select treeview node by text or key"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|