Auto 'DESELECT' a vb6 treeview node after it has been clicked

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcena
    New Member
    • Sep 2006
    • 8

    Auto 'DESELECT' a vb6 treeview node after it has been clicked

    I have searched extensively and found no solution for vb6. Am using Visual basic 6 treeview control. I notice that when I click a node, the next time I click on a different node the action of the previous one that I had clicked still fires. I need to "RESET" the tree view such that every click event fires a new action. Thank you.
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    Remove the CheckBoxes Property of the TreeView..
    So that at any given time, only one Node is Selected..


    Regards
    Veena

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      You need tohandle the following events

      [code=vb]
      Private Sub tv1_Collapse(By Val Node As MSComctlLib.Nod e)
      'Your code here
      End Sub

      Private Sub tv1_Expand(ByVa l Node As MSComctlLib.Nod e)
      'Your code here
      End Sub

      Private Sub tv1_NodeClick(B yVal Node As MSComctlLib.Nod e)
      'Your code here
      End Sub
      [/code]

      Comment

      Working...