Results 1 to 3 of 3

Thread: Treeview help

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    19

    Treeview help

    I have created a tree view and I would like to set the focus to a node. Can anyone help me with this.


    Treeview1.Node(1).Node(0)

    Need help with the above, tring to set the focus to Child 0 of Node 1.

    Thanks

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    try this
    TreeView1.SelectedNode = TreeView1.Nodes(1).Nodes(0)


    that would be the first child of the second node
    this is for the first child of the first node (0 bases array index):
    TreeView1.SelectedNode = TreeView1.Nodes(0).Nodes(0)
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    19

    Solved

    Thanks, that was it

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