That's basicly it man:
How can I check if a node has children or not ?
Printable View
That's basicly it man:
How can I check if a node has children or not ?
If you are reffering to a node in a treeview just check the Children property. It returns the number of child nodes.
If TreeView1.Nodes(1).Children > 0 Then
MsgBox "The node have child nodes"
Else
MsgBox "The node don't have any child nodes"
End If
Good luck!
------------------
Joacim Andersson
[email protected]
[email protected]
www.YellowBlazer.com
That was what I was reffering to and this is what I was looking for...
cheers