code not tested but it should get you started
where you call it
dim blnControle as boolean = false
blncontrole = testnodes(nodeyouaretesting)
private function testNodes(parentnodeke as treenode) as boolean
dim nodeke as treenode
dim blnC as boolean = false
for each nodeke in parentnodeke.nodes
if nodeke.selected or testnodes(nodeke) then
return true
end if
next
return false
end sub
hope it helps
eric
"Philip Wagenaar" <p.********@accon.nl> wrote in message
news:08****************************@phx.gbl...
How can I check if any child of a node is selected. If the
node itself is selected I want false, if any other node or
it's child's are selected I want false, but if any child
of a specific node is selected I want true returned
.