Well, there isn't a collection of nodes at a particular level; you will have to make your own collection. Here's a function I use to determine the nesting level of a selected treenode:
Code:
Function GetNodeNestingLevel(ByVal node As TreeNode) As Integer
Dim iRetVal As Integer
If node Is Nothing Then
iRetVal = -1
Else
Do Until (node.Parent Is Nothing)
iRetVal += 1
node = node.Parent
Loop
End If
End Function
What are you trying to do?
I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.