dcsimg
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

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


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
Thanks for your registration, follow us on our social networks to keep up-to-date