Assembly: System.Windows.Forms (in system.windows.forms.dll)
'Declaration Public Event MouseClick As MouseEventHandler 'Usage Dim instance As Control Dim handler As MouseEventHandler AddHandler instance.MouseClick, handler
/** @event */ public void add_MouseClick (MouseEventHandler value) /** @event */ public void remove_MouseClick (MouseEventHandler value)
Depressing a mouse button when the cursor is over a control typically raises the following series of events from the control:
For this to occur, the various events cannot be disabled in the control's class.
Two single clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will generate a MouseDoubleClick event instead of the second MouseClick event.
Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the ENTER key when the control has focus.
For more information about handling events, see Consuming Events.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.