Results 1 to 2 of 2

Thread: Help with Treeview

  1. #1
    Guest

    Question

    Is there anybody know how to select a node in treeview when right mouse button click?

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Your question is not very clear.

    If you right click on a treeview, the node will be selected any way.

    otherwise.
    Code:
    'in a mouse click event of an object
    
    if button = vbRightButton then
      TreeView1.Nodes(stKeyOfNode_OrIndex).Selected = True
    end if
    Iain, thats with an i by the way!

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