Help with TreeView control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dan Rolfe

    #1

    Help with TreeView control

    Hello all!

    I am wondering how to read the KEY value off of a TreeView Node.
    I assign the nodes these key values when I add them to the control,
    but I cannot figgure out how to recall that information back.

    Is this possible even?? Why do they allow you to add a unique key
    value if you cant read it back... :-\ What is it that I am missing?

  • Jan Hyde (VB MVP)

    #2
    Re: Help with TreeView control

    "Dan Rolfe" <drolfe@nelsonw atson.com>'s wild thoughts were
    released on 29 Mar 2007 07:46:30 -0700 bearing the following
    fruit:
    >Hello all!
    >
    >I am wondering how to read the KEY value off of a TreeView Node.
    >I assign the nodes these key values when I add them to the control,
    >but I cannot figgure out how to recall that information back.
    >
    >Is this possible even?? Why do they allow you to add a unique key
    >value if you cant read it back... :-\ What is it that I am missing?
    IIRC the Name property will return the key.

    MessageBox.Show (TreeView1.Node s(0).Name)


    Comment

    Working...