73 references to KeyCode
System.Windows.Forms (51)
System\Windows\Forms\Control.cs (2)
6233switch (keyData & Keys.KeyCode) 8928Keys keyCode = (Keys)(nint)msg.WParamInternal & Keys.KeyCode;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2134Keys keyCode = keyData & (Keys.KeyCode | Keys.Alt);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
10074switch (keyData & Keys.KeyCode) 15683switch (e.KeyData & Keys.KeyCode) 20045Keys key = (keyData & Keys.KeyCode); 21854&& (keyData & Keys.KeyCode) == Keys.C))
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
92var maskedKeyData = keyData & Keys.KeyCode;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
129switch (keyData & Keys.KeyCode)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1037return (keyData & Keys.KeyCode) switch
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1410Keys keyCode = keyData & Keys.KeyCode;
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
582return (keyData & Keys.KeyCode) switch
System\Windows\Forms\Controls\ListView\ListView.cs (2)
4258switch (keyData & Keys.KeyCode) 4275switch (keyData & Keys.KeyCode)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1343return (keyData & Keys.KeyCode) switch
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
3223if ((keyData & Keys.KeyCode) != Keys.Tab
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2024switch (keyData & Keys.KeyCode) 3811Keys keyCode = keyData & Keys.KeyCode;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
527switch (keyData & Keys.KeyCode)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (4)
103switch (keyData & Keys.KeyCode) 181switch (keyData & Keys.KeyCode) 246switch (keyData & Keys.KeyCode) 266if ((keyData & Keys.KeyCode) == Keys.Tab && ((keyData & (Keys.Control | Keys.Alt)) == 0))
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1184return (keyData & Keys.KeyCode) switch
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
538if ((keyData & Keys.KeyCode) == Keys.Return)
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
537switch (keyData & Keys.KeyCode)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1328switch (keyData & Keys.KeyCode) 1406Keys keyCode = keyData & Keys.KeyCode;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2717(keyData & Keys.Control) == Keys.Control && (keyData & Keys.KeyCode) == Keys.Tab; 2761Keys keyCode = keyData & Keys.KeyCode;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.cs (1)
54switch (keyData & Keys.KeyCode)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1377if ((keyData & Keys.KeyCode) == Keys.Escape)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
566Keys keyCode = keyData & Keys.KeyCode;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
672Keys keyCode = shortcut & Keys.KeyCode; 713=> (keyData & Keys.KeyCode) is Keys.Menu or Keys.F10;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
847return (keyData & Keys.KeyCode) switch
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
1811switch (keyData & Keys.KeyCode) 2257if (CheckBoxes && (e.KeyData & Keys.KeyCode) == Keys.Space) 2287if ((e.KeyData & Keys.KeyCode) == Keys.Space)
System\Windows\Forms\Form.cs (1)
4695Keys keyCode = keyData & Keys.KeyCode;
System\Windows\Forms\Input\KeyEventArgs.cs (2)
45Keys keyGenerated = KeyData & Keys.KeyCode; 61public int KeyValue => (int)(KeyData & Keys.KeyCode);
System\Windows\Forms\Input\KeysConverter.cs (3)
178if ((currentKey & Keys.KeyCode) != 0) 258Keys keyOnly = key & Keys.KeyCode; 306Keys keyOnly = key & Keys.KeyCode;
System\Windows\Forms\Input\PreviewKeyDownEventArgs.cs (2)
37Keys keyGenerated = KeyData & Keys.KeyCode; 51public int KeyValue => (int)(KeyData & Keys.KeyCode);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1197Keys keyCode = keyData & Keys.KeyCode;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
2301Keys keyCode = keyData & Keys.KeyCode;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
906switch (keyData & Keys.KeyCode)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
1007Keys keyCode = keyData & Keys.KeyCode;
System.Windows.Forms.Design (19)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
101Keys keyCode = keyData & Keys.KeyCode;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
66if ((keyData & Keys.KeyCode) == Keys.Return && Multiline && (keyData & Keys.Alt) == 0) 78switch (keyData & Keys.KeyCode)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
338&& (keyData & Keys.KeyCode) == Keys.Tab)
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
79if ((keyData & Keys.KeyCode) == Keys.Return && (keyData & (Keys.Alt | Keys.Control)) == 0)
System\Drawing\Design\SelectionPanelBase.cs (1)
99if ((keyData & Keys.KeyCode) == Keys.Tab && (keyData & (Keys.Alt | Keys.Control)) == 0)
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (3)
298if ((keyData & Keys.KeyCode) == Keys.Return && (keyData & (Keys.Alt | Keys.Control)) == 0) 304if ((keyData & Keys.KeyCode) == Keys.Escape && (keyData & (Keys.Alt | Keys.Control)) == 0) 310if ((keyData & Keys.KeyCode) == Keys.Tab && (keyData & (Keys.Alt | Keys.Control)) == 0)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
773switch (keyData & Keys.KeyCode)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
269if ((keyData & Keys.Modifiers) == 0 && (keyData & Keys.KeyCode) == Keys.Escape)
System\Windows\Forms\Design\FormatStringDialog.cs (1)
242switch (keyData & Keys.KeyCode)
System\Windows\Forms\Design\NewItemsContextMenuStrip.cs (1)
73Keys keyCode = keyData & Keys.KeyCode;
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (4)
71if (_currentValue is Keys currentKeys && (currentKeys & Keys.KeyCode) == 0) 240Debug.Assert((keyCode & Keys.KeyCode) == keyCode); 259Keys keyCode = keyData & Keys.KeyCode; 331Keys keyCode = keys & Keys.KeyCode;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1562switch (keyData & Keys.KeyCode) 1717Keys keyCode = keyData & Keys.KeyCode;
System.Windows.Forms.Tests (2)
System\Windows\Forms\KeyEventArgsTests.cs (1)
30Assert.Equal((int)(keyData & Keys.KeyCode), e.KeyValue);
System\Windows\Forms\PreviewKeyDownEventArgsTests.cs (1)
30Assert.Equal((int)(keyData & Keys.KeyCode), e.KeyValue);
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
933Keys keyCode = (Keys)keyData & Keys.KeyCode;