A TreeView 's information is contained in a Nodes
Collection of Node objects. Just as image information is stored in the
ListImages Collection for the ImageList control,
node information is stored in the Nodes Collection of the
TreeView control. You can get to the information in a specific node in
the tree by referring to that node by index, as follows:
TreeView1.Nodes(index)
where "index"
is an integer identifying a node in the collection,
or by referring to the node with a key value,
as follows:
TreeView1.Nodes("key")
where "key" is
the string value of the node's key property.
The Node object represents a single node from
the Nodes Collection:
Dim objNode
as Node
Set objNode = TreeView1.Nodes(1)
After the above code executes, objNode will have
the same properties as the node identified by
TreeView1.Nodes(1).
Treeview Control topics