The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This documentation is archived and is not being maintained.
The TreeNodeExpanded event is raised when a node is expanded in the TreeView control. This allows you to provide an event-handling method that performs a custom routine whenever this event occurs.
Note
If the SelectAction property for a node is set to TreeNodeSelectAction.Expand or TreeNodeSelectAction.SelectExpand, the TreeNodeExpanded event is also raised when that node is clicked in the TreeView control.
The following code example demonstrates how to use the TreeNodeExpanded event to update the content of a Label control when the user expands a node in the TreeView control.