Click

This event occurs when a user presses and then releases the button of mouse device over an object. It also occurs when you change the value of a control.

Syntax

Private Sub object_Click( )

Parameters

object
Object expression that evaluates to a control or Form object.

Remarks

If the Click event contains code, the Click event intercepts the click of the mouse device, and the DblClick event does not occur.

For a Form object, the DlbClick event occurs when the user chooses either a blank area or a disabled control. For an intrinsic control, this event occurs when the user performs any of the following actions:

You also can initiate the Click event in code by performing the following actions: