18 references to ControlKey
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (2)
2519if (PInvoke.GetKeyState((int)Keys.ControlKey) < 0) 7621&& (e.KeyCode.HasFlag(Keys.ControlKey) || e.KeyCode == Keys.Escape))
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
693case Keys.ControlKey:
System\Windows\Forms\SendKeys\SendKeys.cs (6)
147AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.ControlKey, startNewChar, hwnd)); 205AddEvent(new SKEvent(PInvokeCore.WM_KEYUP, (int)Keys.ControlKey, false, hwnd)); 495AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.ControlKey, s_startNewChar, hwnd)); 540AddEvent(new SKEvent(PInvokeCore.WM_KEYDOWN, (uint)Keys.ControlKey, s_startNewChar, hwnd)); 782else if (skEvent.ParamL == (int)Keys.ControlKey) 798AddEvent(new SKEvent(PInvokeCore.WM_KEYUP, (int)Keys.ControlKey, false, default));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ComponentTray.cs (1)
2165_ctrlSelect = PInvoke.GetKeyState((int)Keys.ControlKey) != 0;
System.Windows.Forms.Tests (8)
KeyboardTooltipStateMachineTests.cs (6)
51[InlineData(Keys.ControlKey)] 53[InlineData(Keys.ControlKey | Keys.ShiftKey | Keys.F10)] 80[InlineData(Keys.ControlKey, true)] 82[InlineData(Keys.ControlKey | Keys.ShiftKey | Keys.F10, true)] 83[InlineData(Keys.ControlKey, false)] 85[InlineData(Keys.ControlKey | Keys.ShiftKey | Keys.F10, false)]
System\Windows\Forms\SendKeysTests.cs (2)
19Assert.Equal(Keys.ControlKey, form.KeyEvents[0].KeyCode); 22Assert.Equal(Keys.ControlKey, form.KeyEvents[2].KeyCode);