BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
using System.Runtime.InteropServices; ... ... [DllImport("user32.dll")] public static extern long GetKeyState(int vKey); const int VK_CAPITAL = 0x14; private void button1_Click(object sender, System.EventArgs e) { if( GetKeyState(VK_CAPITAL) != 0) Console.WriteLine("the X-CapLock key is down"); }HTH, Clay Burch