Results 1 to 4 of 4

Thread: How can you click an item (select it) in a treeview??

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195
    Anyone know?

  2. #2
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    I have attached an example of a project I did using TreeView and ListView.

    I hope this helps.
    Attached Files Attached Files
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195
    thanks, but your zip didnt show how to select an item with a command button..

    do u know how?? Ive tried everything from tvTreeView.Nodes(1).Selected = True to
    tvTreeView.SelectedItem = 1
    and a heluva lot more (10 different methods i think) but i just cant seem to select one!

  4. #4
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    It should Work..I tried it and it works

    I Think the Index of your nodes could be inaccurate

    Add a Command1 to my Project I sent you

    Under Comman1_Click Event, add this
    TreeView1.Nodes(4).Selected = True

    You will see the Second Node Highlighted. Check and make sure your index number of the node is right
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

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