NodeClick

The NodeClick event occurs when a Node object in a TreeView control is clicked.

Syntax

Private Sub object_NodeClick (node[index])

The NodeClick event syntax has these parts:

Part Description
object An object expression that evaluates to an object.
node A reference to the clicked Node object.

Remarks

The standard Click event is generated when the user clicks any part of the TreeView control outside a node object. The NodeClick event is generated when the user clicks a particular Node object; the NodeClick event also returns a reference to a particular Node object which can be used to validate the Node before further action is taken. The NodeClick event occurs before the standard Click event.