73 references to KeyCode
System.Windows.Forms (51)
System\Windows\Forms\Control.cs (2)
6269
switch (keyData & Keys.
KeyCode
)
8964
Keys keyCode = (Keys)(nint)msg.WParamInternal & Keys.
KeyCode
;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2136
Keys keyCode = keyData & (Keys.
KeyCode
| Keys.Alt);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
10075
switch (keyData & Keys.
KeyCode
)
15700
switch (e.KeyData & Keys.
KeyCode
)
20065
Keys key = (keyData & Keys.
KeyCode
);
21869
&& (keyData & Keys.
KeyCode
) == Keys.C))
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
91
var maskedKeyData = keyData & Keys.
KeyCode
;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
127
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)
4262
switch (keyData & Keys.
KeyCode
)
4279
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
)
184
switch (keyData & Keys.
KeyCode
)
249
switch (keyData & Keys.
KeyCode
)
269
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)
1320
switch (keyData & Keys.
KeyCode
)
1398
Keys keyCode = keyData & Keys.
KeyCode
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2715
(keyData & Keys.Control) == Keys.Control && (keyData & Keys.
KeyCode
) == Keys.Tab;
2759
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)
1374
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)
766
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)
931
Keys keyCode = (Keys)keyData & Keys.
KeyCode
;