Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
172 | Apr 11,2002 11:51 PM UTC | Apr 13,2002 12:34 AM UTC | WinForms | 3 |
![]() |
Tags: FAQ |
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
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.