Expanding all nodes in a Treeview control:   Return to List

For i = 1 To Treeview1.Nodes.Count
    Treeview1.Nodes.Item(i).Expanded = True
Next

' All nodes in a Treeview have 2 basic properties:
    Node.Text -- The text displayed in the Treeview control
    Node.Key -- The assigned key -- used to attach children & perform other manipulations on the particular node.

See also:
Treeview ... Adding Nodes
Treeview ... Adding Root Node
Treeview ... Collapsing Nodes to Root Level
Treeview ... Complete Subprocedure for Collapsing Nodes
Treeview ... Counting Number of Nodes
Treeview ... Determing selected Node and Highlighting it
Treeview ... ChildNode Info of Selected Node
Treeview ... Text of Selected Node
Treeview ... Node Click Event
Treeview ... Number of Children (in parens) appended to Text of Selected Node
Treeview ... Reacting to DragOver in a Treeview
Treeview ... Reacting to Drag and Drop
Treeview ... Repositioning Cursor to the Top of the Treeview



Note to Webmaster