BeforeLabelEdit

This event occurs when a user begins to edit the label of the currently selected Node or ListItem object.

Syntax

Private Sub control_BeforeLabelEdit(cancel)

Parameters

control
Object expression that evaluates to a ListView or TreeView control.
cancel
An integer that determines if the operation is canceled. Any nonzero integer cancels the operation. The default is 0.

Remarks

A user generates the BeforeLabelEdit event only if you set the LabelEdit property to 0 (tvwAutomatic or lvwAutomatic) or if you invoke the StartLabelEdit method.

To determine which object's label is being edited, use the SelectedItem property.