32 references to WM_KEYDOWN
System.Windows.Forms (32)
winforms\Managed\System\WinForms\ComboBox.cs (2)
1658case NativeMethods.WM_KEYDOWN: 2220if (m.Msg == NativeMethods.WM_KEYDOWN) {
winforms\Managed\System\WinForms\Control.cs (7)
10157if (msg.Msg == NativeMethods.WM_KEYDOWN || msg.Msg == NativeMethods.WM_SYSKEYDOWN) { 10247if (msg.Msg == NativeMethods.WM_KEYDOWN || msg.Msg == NativeMethods.WM_SYSKEYDOWN) { 10263if (msg.Msg == NativeMethods.WM_KEYDOWN || msg.Msg == NativeMethods.WM_SYSKEYDOWN) { 10648if (m.Msg == NativeMethods.WM_KEYDOWN || m.Msg == NativeMethods.WM_SYSKEYDOWN) { 14224case NativeMethods.WM_KEYDOWN: 16598if (msg.message == NativeMethods.WM_KEYDOWN && msg.wParam == (IntPtr)NativeMethods.VK_TAB) { 18506case NativeMethods.WM_KEYDOWN:
winforms\Managed\System\WinForms\DataGrid.cs (1)
8210if (m.Msg == NativeMethods.WM_KEYDOWN) {
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
22306if (m.Msg == NativeMethods.WM_SYSKEYDOWN || m.Msg == NativeMethods.WM_KEYDOWN) 22420if (this.editingControl != null && (m.Msg == NativeMethods.WM_KEYDOWN || m.Msg == NativeMethods.WM_SYSKEYDOWN)) 22432if (m.Msg == NativeMethods.WM_KEYDOWN || m.Msg == NativeMethods.WM_SYSKEYDOWN)
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (1)
314if (m.Msg == NativeMethods.WM_KEYDOWN && ModifierKeys == Keys.Control)
winforms\Managed\System\WinForms\MessageDecoder.cs (1)
125case NativeMethods.WM_KEYDOWN: text = "WM_KEYDOWN"; break;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
929case NativeMethods.WM_KEYDOWN:
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
1790if (dropDownHolder != null && dropDownHolder.Visible && m.Msg == NativeMethods.WM_KEYDOWN && (int)m.WParam != (int)Keys.Tab) {
winforms\Managed\System\WinForms\SendKeys.cs (12)
167AddEvent(new SKEvent(NativeMethods.WM_KEYDOWN, (int)Keys.ShiftKey, fStartNewChar, hwnd)); 173AddEvent(new SKEvent(NativeMethods.WM_KEYDOWN, (int)Keys.ControlKey, fStartNewChar, hwnd)); 179AddEvent(new SKEvent(NativeMethods.WM_KEYDOWN, (int)Keys.Menu, fStartNewChar, hwnd)); 204AddEvent(new SKEvent(altnoctrldown ? NativeMethods.WM_SYSKEYDOWN : NativeMethods.WM_KEYDOWN, vk, fStartNewChar, hwnd)); 471AddEvent(new SKEvent(NativeMethods.WM_KEYDOWN, (int)Keys.ShiftKey, fStartNewChar, hwnd)); 477AddEvent(new SKEvent(NativeMethods.WM_KEYDOWN, (int)Keys.ControlKey, fStartNewChar, hwnd)); 483AddEvent(new SKEvent(NativeMethods.WM_KEYDOWN, (int)Keys.Menu, fStartNewChar, hwnd)); 504AddEvent(new SKEvent(NativeMethods.WM_KEYDOWN, (int)Keys.ShiftKey, fStartNewChar, hwnd)); 512AddEvent(new SKEvent(NativeMethods.WM_KEYDOWN, (int)Keys.ControlKey, fStartNewChar, hwnd)); 520AddEvent(new SKEvent((haveKeys[HAVECTRL] != 0) ? NativeMethods.WM_KEYDOWN : NativeMethods.WM_SYSKEYDOWN, 716else if ((skEvent.wm == NativeMethods.WM_KEYDOWN) || 778if (skEvent.wm == NativeMethods.WM_KEYDOWN)
winforms\Managed\System\WinForms\SplitContainer.cs (1)
2550if ((m.Msg == NativeMethods.WM_KEYDOWN && (int)m.WParam == (int)Keys.Escape)
winforms\Managed\System\WinForms\Splitter.cs (1)
1086if (m.Msg == NativeMethods.WM_KEYDOWN && unchecked((int)(long)m.WParam) == (int)Keys.Escape) {
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
1339case NativeMethods.WM_KEYDOWN: