if nd.Level = 0 then
return
end if
dim bln as Boolean = True
for each nd as WinForm.TreeNode in e.Node.ParentNode.Nodes
if nd.checked = false then
bln= false
exit for
next
if bln then
e.node.Parentnode.Checked = true