Re: Tree view node selection

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



Adam,

Be aware that this kind of code triggers the change events and can therefore
give some strange te first time not expected behaviour as you are not used
to that.

Just as little addition.

Cor

"Adam Honek" <AdamHonek@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> schreef in bericht
news:efgiNZcXGHA.1352@xxxxxxxxxxxxxxxxxxxxxxx
I also tried selecting it by its name but no go.

The node isn't highlighted for some reason.

Adam

"Adam Honek" <AdamHonek@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:OoE54WcXGHA.3492@xxxxxxxxxxxxxxxxxxxxxxx
Your code works great.

The only problem is I have 3 nodes that all have an index of 0.

Worst still I can't change it in the properties. Strange.

I have:

X (0)
------X (0)
----- X (0)
----- X (1)
----- X (2)
----- X (3)

Adam

<tommaso.gastaldi@xxxxxxxxxxx> wrote in message
news:1144799494.856085.275750@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

with YourTreeview
.SelectedNode = TheTreeNodeYouWishToSelect ' (for instance:
.Nodes(0))
end with

Adam Honek ha scritto:

Hi all,

How do we select a tree view's node outside of a tree view event?

Looking through the lists there's no select function, the nearest I can
find
is GetNodeAt but this seems to want the screen coordinates.

Thanks,
Adam







.



Relevant Pages

  • Re: the weird card rarely believes Chester, it kicks Edith instead
    ... Just now Yani will tease the coffee, ... the tree will improve before the distant cave. ... Bert will wanly change afterwards. ... For Gavin the film's strange, below me it's cheap, whereas in front of you it's ...
    (rec.pets.cats.anecdotes)
  • Re: [PATCH 000/141] V4L/DVB updates part 1
    ... It allows me to export the patches from V4L/DVB ... Mercurial tree, removing backward compatible code and correcting the ... I don't know if it's stgit per se. ... apparently has something strange going on. ...
    (Linux-Kernel)
  • Re: Textbox control question
    ... the basic requirements I outlined earlier. ... the only thing strange I ... or am I barking up the wrong tree. ... If my logic is faulty, ...
    (microsoft.public.vb.general.discussion)
  • Re: [SI] 62 -OOF- Flints comments;
    ... I think the tree should ... The apple is not properly exposed... ... strange shot! ... Prev by Date: ...
    (rec.photo.equipment.35mm)