The Expand event occurs when a Node object in a TreeView control is expanded, that is, when a child node becomes visible.
Private Sub object_Expand (node[index])
The Expand event syntax has these parts:
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
node | A reference to the expanded Node object. |
The Expand event occurs after the Click and DblClick events. The Expand event is generated in three ways: when the user double-clicks a Node object that has child nodes; when the Expanded property for a Node object is set to True; and when the plus/minus image is clicked.