17 references to GetKeyState
System.Windows.Forms (17)
winforms\Managed\System\WinForms\Control.cs (14)
3343
if (UnsafeNativeMethods.
GetKeyState
((int)Keys.ShiftKey) < 0) modifiers |= Keys.Shift;
3344
if (UnsafeNativeMethods.
GetKeyState
((int)Keys.ControlKey) < 0) modifiers |= Keys.Control;
3345
if (UnsafeNativeMethods.
GetKeyState
((int)Keys.Menu) < 0) modifiers |= Keys.Alt;
3360
if (UnsafeNativeMethods.
GetKeyState
((int)Keys.LButton) < 0) buttons |= MouseButtons.Left;
3361
if (UnsafeNativeMethods.
GetKeyState
((int)Keys.RButton) < 0) buttons |= MouseButtons.Right;
3362
if (UnsafeNativeMethods.
GetKeyState
((int)Keys.MButton) < 0) buttons |= MouseButtons.Middle;
3363
if (UnsafeNativeMethods.
GetKeyState
((int)Keys.XButton1) < 0) buttons |= MouseButtons.XButton1;
3364
if (UnsafeNativeMethods.
GetKeyState
((int)Keys.XButton2) < 0) buttons |= MouseButtons.XButton2;
7573
int result = UnsafeNativeMethods.
GetKeyState
((int)keyVal);
14412
keyState |= (Keys)((UnsafeNativeMethods.
GetKeyState
((int)Keys.ControlKey) < 0) ? NativeMethods.MK_CONTROL : 0);
14413
keyState |= (Keys)((UnsafeNativeMethods.
GetKeyState
((int)Keys.ShiftKey) < 0) ? NativeMethods.MK_SHIFT : 0);
18559
if (UnsafeNativeMethods.
GetKeyState
(NativeMethods.VK_SHIFT) < 0) keyState |= 1;
18560
if (UnsafeNativeMethods.
GetKeyState
(NativeMethods.VK_CONTROL) < 0) keyState |= 2;
18561
if (UnsafeNativeMethods.
GetKeyState
(NativeMethods.VK_MENU) < 0) keyState |= 4;
winforms\Managed\System\WinForms\RadioButton.cs (1)
469
if (UnsafeNativeMethods.
GetKeyState
((int)Keys.Tab) >= 0) {
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
2855
if (UnsafeNativeMethods.
GetKeyState
((int)Keys.LButton) < 0) {
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
1734
if (UnsafeNativeMethods.
GetKeyState
((int)Keys.ShiftKey) < 0 && (keyData == Keys.None)) {