DblClick Event  
 

The DblClick event is generated when the user presses and releases a mouse button twice.

Syntax

Sub object_DblClick( [Index As Integer] )

Remarks

The DblClick event is generated when the user presses and releases the mouse button, then quickly presses and releases the mouse button again, anywhere over the control's window. To distinguish between the user pressing the left or right mouse buttons, use the MouseDown and MouseUp events. To determine the column and row in the virtual display where the mouse button was clicked, check the MouseX and MouseY properties.

If the user doesn't double-click within the system's time limit, the control receives another Click event instead. The double-click time limit may vary because the user can set the double-click speed in the Control Panel. When you're attaching procedures for these related events, be sure that their actions don't conflict. Controls that don't receive DblClick events may receive two clicks instead of a double-click.

When debugging events, do not use message boxes to show when the event occurred, as this will interfere with the normal functioning of many events. For example, displaying a message box in the Click event may prevent the DblClick event from being raised.

See Also

MouseX Property, MouseY Property, Click Event, MouseDown Event, MouseUp Event