Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I detemine the Nesting level of a selected Node

Status
Not open for further replies.

whool

Programmer
Jan 31, 2002
31
AU
How can I to determined the nesting level of the selecteditem of a Treeview. The node object has no such property. If there were an IsChild property it would be possible to increment a value in a loop until Ischild = False. But there are such properties.

Any ideas anyone?




 
check the .Parent property for nothingness
ex.
Code:
If YourNode.Parent Is Nothing Then
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top