CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: tree view

  1. #1
    Join Date
    Aug 2001
    Posts
    19

    tree view

    ANyone tell me a quick way of iterating through all nodes of a tree view looking for a key.

    Many thanx.
    mat


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: tree view

    If you can use the index to just get the node, or loop through it using for each

    Dim N as Node
    set N = Treeview1.Nodes("Somekey")

    for Each N In Treeview1.Nodes
    Debug.print N.Key
    next N




    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Aug 2001
    Posts
    19

    Re: tree view

    thanx tom :-)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured