Determining what level a treeview node is at...

caeanis

Freshman
Joined
Sep 6, 2006
Messages
40
I have a VB.NET treeview control that is five levels deep. I am trying to figure out how to determine which level a given node is at. For instance if the hierarchy is as follows:

Root
Branch
Bough
Limb
Leaf

I would like return the value that the currently selected node is at, be it branch or limb or whatever. Is there a built in property in the the Treeview that returns this or is the a relatively simple way code for it?
 
I did find another way to do what I was trying to do but that is what I was looking for, didn't know about that property, thanks!
 
Back
Top