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