Expand

This event occurs when a Node object in a TreeView control is expanded; that is, when a child node becomes visible.

Syntax

Private Sub treeview_Expand(index)

Parameters

treeview
Object expression that evaluates to a TreeView control.
index
Index of the expanded Node object.

Remarks

The Expand event occurs after the Click and DblClick events. The Expand event is generated in three ways: