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
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
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.