no
Printable View
no
Nodes
Returns a reference to a collection of TreeView control Node objects.
Syntax
object.Nodes
The object placeholder represents an object expression that evaluates to an object.
Remarks
You can manipulate Node objects using standard collection methods (for example, the Add and Remove methods). You can access each element in the collection by its index, or by a unique key that you store in the Key property.
Example: load a picture box if node 3 of a treeview is selected.
Code:
Private Sub TreeView1_NodeClick(ByVal Node As Node)
frmTips.Caption = "Index = " & Node.Index & " Text:" & Node.Text
If Node.Index = 3 Then
With Picture1
.AutoSize = True
.Visible = False
.Picture = LoadPicture(App.Path & "/maple.jpg")
End With
End If
End Sub