Re: Select treeview node by text or key

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Elmo Watson (sputnik75043_at_nospam.Yahoo.com)
Date: 07/20/04


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?
> >
> >
>
>



Relevant Pages

  • Re: Select treeview node by text or key
    ... You need to iterate the tree to find the ... Bear in mind that, unlike the Key, there is no ... guarantee that the text is unique. ...
    (microsoft.public.vb.general.discussion)
  • Re: Bear claws
    ... This story was told one summer at an evening campfire program by a ranger at Yellowstone Park..... ... One day, while on his way back to his cabin after a long day clearing trails with his saw, Ranger Bob looked down the trail he was traveling on and saw a huge grizzly bear lumbering toward him. ... Being a Ranger, he knew he could not outrun the bear and he also knew that if he played dead...he would soon be dead, so his only option was to quickly find a tree and climb it until the bear passed on. ...
    (rec.outdoors.rv-travel)
  • Re: Deconversion
    ... But you just said the post is outside your mind on Google's servers, ... If I say "Did you see that tree shaped like an armchair ... I'll agree with you if you agree that that 'shared objective reality' ...
    (uk.religion.christian)
  • Re: Deconversion
    ... so the post is not all in your mind. ... does everyone see the same tree? ... I'll agree with you if you agree that that 'shared objective reality' ...
    (uk.religion.christian)
  • Re: increasing the RPS of any page
    ... - performance test as you develop, getting ridding of slow or cpu ... - remember that response.write(your html) is probably much more ... also bear in mind the big difference between slow through waiting (low ...
    (microsoft.public.dotnet.framework.aspnet)