none
How To Select a Specific TreeView Node ??? RRS feed

  • Question

  • Hello guys I need some help
    could you tell me how to select a specific treeview node

    in example I want to select level 2.1

    Base
        Level 1
            Level 2
                Level 2.1
                Level 2.2
            Level 3
            Level 4

    regard
    XanXan


    Wednesday, August 20, 2008 4:23 PM

Answers

  • Here's one way:
    TreeView1.SelectedNode = TreeView1.Nodes(0).Nodes(0).Nodes(0).Nodes(0)

    hope it helps

    Rick
    • Marked as answer by XanXan Wednesday, August 20, 2008 5:52 PM
    Wednesday, August 20, 2008 5:40 PM

All replies