returning key and text of specific nodes in tree / treeview

iampaul

Registered User.
Local time
Today, 23:42
Joined
Apr 19, 2005
Messages
14
I have a treeview control with 3 nodes, at 3 different levels and with one node at each level.

I am able to return the text or the key by looping through them like so.

For Each Node In ctlTree.Nodes
MsgBox Node.Text
MsgBox Node.Key
Next

Is there a way to return the text or key of the 1st, 2nd or 3rd node in this collection?
 
Don't have a tree control to hand just now but is it not something as simple as:

Code:
Nodes(0).Text
 
It is indeed. Thanks alot.
 

Users who are viewing this thread

Back
Top Bottom