User32SetDoubleClickTime Method

Sets the double-click time for the mouse.

A double-click is a series of two clicks of the mouse button, the second occurring within a specified time after the first.

The double-click time is the maximum number of milliseconds that may occur between the first and second click of a double-click.

The maximum double-click time is 5000 milliseconds.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll")]
public static bool SetDoubleClickTime(
	int interval
)

Parameters

interval  Int32
The number of milliseconds that may occur between the first and second clicks of a double-click.

If this parameter is set to 0, the system uses the default double-click time of 500 milliseconds.

If this parameter value is greater than 5000 milliseconds, the system sets the value to 5000 milliseconds.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

To get extended error information, call GetLastWin32Error.

Remarks

See Also