Double Click - Millisecs

  • Thread starter Thread starter Phil Jones
  • Start date Start date
P

Phil Jones

Does anyone know where to get the double-click delay (ms) that the user sets
in their ControlPanel. Is that an environment variable that is available.
Can't see it on the Environment object.

Thanks
 
Almost anything you can set in Control Panel is stored in the Registry,
including Mouse Settings. So, what you need to do is to modify the System
Registry. The Mouse settings are stored in the following key:

HKEY_CURRENT_USER\Control Panel\Mouse

The one you want to change is DoubleClickSpeed, which is in milliseconds.

This is done using the Microsoft.Win32.Registry and
Microsoft.Win32.RegistryKey classes.

See http://msdn2.microsoft.com/en-us/library/microsoft.win32(VS.80).aspx

--
HTH,

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

I just flew in from Chicago with
a man with a wooden leg named Smith
who shot an elephant in my pajamas.
So I bit him.
 
Hmmmm - and yes, DoubleClickSize is very useful for what I'm doing now ya
point it out!
Thanks
 
Back
Top