Re: Tree view node selection



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: JTree display update issue with new nodes - SOLVED
    ... Now the new nodes show up but for some reason ... there is a blank "line" displayed in the tree like this: ... Why would selecting the new node cause a blank line to ...
    (comp.lang.java.gui)
  • Re: EDEN LOG (no spoilers)
    ... reason is essential. ... intent -- I also enjoy. ... whatever it was above that the "tree" society did to him ... door, and encountering the processing or adapting man in the roots, ...
    (rec.arts.movies.current-films)
  • Re: any chance mid-ohio could ever host the MotoGP USGP event?
    ... I can remember tree stand's near the ... if for no other reason than to show who's ... can just imagine those light powerful bikes, ... French GP - Paul Ricard (full circuit) ...
    (rec.motorcycles.racing)
  • Re: firing up the grill
    ... history that can be "proven" then we may have differing views of what ... be a reason for something else. ... identical with its existence in objective reality even though we know ... But we don't experience a tree on an atomic level, ...
    (misc.writing)
  • Re: Protection of the public
    ... deliberately in danger it was "Mick" So get your facts right before ... Every single tree in the country? ... is reason to suspect are rotten, ... What have I said that's stupid? ...
    (uk.rec.walking)