Gets the number of times the button was clicked.
member ClickCount : int with get, internal set
System .Int32 The number of times the mouse button was clicked.
One use of
is to determine whether a double mouse click has occurred. Some classes expose events for a double-click, such as the ClickCount event on the MouseDoubleClick class. When a double click event is not exposed on a class, a double click can be detected by using the Control property on the event data. ClickCount
The following example creates a
which determines if a single, double, or triple click occurred. MouseButtonEventHandler property is used to determine the number of clicks. ClickCount
No code example is currently available or this language may not be supported.
Supported in: 4, 3.5, 3.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see
.NET Framework System Requirements.