VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



TreeView : Check/Uncheck all children nodes for a checked/unchecked node

by gabio (9 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 27th July 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

TreeView : Check/Uncheck all children nodes for a checked/unchecked node

Rate TreeView : Check/Uncheck all children nodes for a checked/unchecked node



        Dim n As Integer
        If Node.Children > 0 Then ' There are children.
            n = Node.Child.Index
            Node.Child.Checked = Node.Checked
            While n <> Node.Child.LastSibling.Index
                tvInd.Nodes(n).Next.Checked = Node.Checked
                n = tvInd.Nodes(n).Next.Index
            Wend
        End If
End Sub

Download this snippet    Add to My Saved Code

TreeView : Check/Uncheck all children nodes for a checked/unchecked node Comments

No comments have been posted about TreeView : Check/Uncheck all children nodes for a checked/unchecked node. Why not be the first to post a comment about TreeView : Check/Uncheck all children nodes for a checked/unchecked node.

Post your comment

Subject:
Message:
0/1000 characters