state = NativeMethods.GetKeyState(0x14 /*VK_CAPTIAL*/);
capsKeyDown = Convert.ToBoolean(NativeMethods.HIWORD(state));
capsKeyON = Convert.ToBoolean(NativeMethods.LOWORD(state));
if((state == -127 state == 1 ) && capsKeyON == true)
{
pictureBox1.Visible = true;
}
else if((state == -128 state == 0) && capsKeyON == false)
{
pictureBox1.Visible = false;
}
Anto Rocked!
13 years ago
No comments:
Post a Comment