Syntax
1: For ListBox, PictureListBox, ListView, and Tab controls
Description
Occurs when the user double-clicks on the control.
Event ID
Event ID |
Objects |
---|---|
pbm_lbndblclk |
ListBox, PictureListBox |
pbm_lvndoubleclicked |
ListView |
pbm_tcndoubleclicked |
Tab |
Arguments
Argument |
Description |
---|---|
index |
Integer by value. The index of the item the user |
Return Values
Long.
Return code choices (specify in a RETURN statement):
0 — Continue processing
Usage
You can use the ItemActivate event (with the OneClickActivate
property set to false) instead of the DoubleClicked event for ListView
controls.
In a ListBox or PictureListBox, double-clicking on an item also
triggers a SelectionChanged event.
Examples
This example uses the DoubleClicked event to begin editing the
double-clicked ListView item:
1 |
This.EditLabels = TRUE |
See also