Dim p = e.node.ParentNodeIf p Is Nothing Then p = e.senderFor Each n As WinForm.TreeNode In p.Nodes If n.name <> e.Node.name Then n.CollapseAll End IfNext
e.node.ExpandAll