Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB7
Expertise: beginner
Apr 28, 2003

GetNodeNestingLevel - Returns the nesting level of a TreeView's Node object

' Returns the nesting level of a TreeView's Node object
' (returns zero for root nodes)

Function GetNodeNestingLevel(ByVal node As TreeNode) As Integer
    Do Until (node.Parent Is Nothing)
        GetNodeNestingLevel += 1
        node = node.Parent
    Loop
End Function
Marco Bellinaso
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap