Get system cursor blink rate in C#?

Jahava
Jahava used Ask the Experts™
on
How do I access the system (Windows) cursor blink rate setting (integer, I assume)?

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
The following code should do the trick for you:

public class Caret
{
   [System.Runtime.InteropServices.DllImport("user32.dll")]
   public extern static bool SetCaretBlinkTime(uint uMSeconds);

   [System.Runtime.InteropServices.DllImport("user32.dll")]
   public extern static uint GetCaretBlinkTime();
}

HTH,
MikeyG

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial