433 references to Control
Accessibility_Core_App (9)
Menu_Toolbars_controls.Designer.cs (9)
167
newToolStripMenuItem.ShortcutKeys = Keys.
Control
| Keys.N;
176
openToolStripMenuItem.ShortcutKeys = Keys.
Control
| Keys.O;
190
saveToolStripMenuItem.ShortcutKeys = Keys.
Control
| Keys.S;
210
printToolStripMenuItem.ShortcutKeys = Keys.
Control
| Keys.P;
244
undoToolStripMenuItem.ShortcutKeys = Keys.
Control
| Keys.Z;
251
redoToolStripMenuItem.ShortcutKeys = Keys.
Control
| Keys.Y;
265
cutToolStripMenuItem.ShortcutKeys = Keys.
Control
| Keys.X;
274
copyToolStripMenuItem.ShortcutKeys = Keys.
Control
| Keys.C;
283
pasteToolStripMenuItem.ShortcutKeys = Keys.
Control
| Keys.V;
DesignSurface (5)
MainForm.Designer.cs (5)
193
this.ToolStripMenuItemUnDo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.
Control
| System.Windows.Forms.Keys.Z)));
201
this.ToolStripMenuItemReDo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.
Control
| System.Windows.Forms.Keys.Y)));
216
this.ToolStripMenuItemCut.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.
Control
| System.Windows.Forms.Keys.X)));
226
this.ToolStripMenuItemCopy.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.
Control
| System.Windows.Forms.Keys.C)));
236
this.ToolStripMenuItemPaste.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.
Control
| System.Windows.Forms.Keys.V)));
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Devices\Keyboard.vb (1)
47
Return CType(keys And Keys.
Control
, Boolean)
System.Windows.Forms (220)
System\Windows\Forms\Control.cs (1)
2521
modifiers |= Keys.
Control
;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2928
if (!returnedValue && keyData == (Keys.
Control
| Keys.A))
2939
&& (keyData == (Keys.
Control
| Keys.Back) || keyData == (Keys.
Control
| Keys.Shift | Keys.Back)))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (69)
10083
return GetTabKeyEffective((keyData & Keys.Shift) == Keys.Shift, (keyData & Keys.
Control
) == Keys.
Control
);
10088
if ((keyData & (Keys.
Control
| Keys.Shift | Keys.Alt)) == Keys.
Control
)
10099
if ((keyData & (Keys.
Control
| Keys.Shift | Keys.Alt)) == Keys.
Control
)
10109
if ((keyData & (Keys.
Control
| Keys.Shift | Keys.Alt)) == Keys.Shift
11890
bool isControlDown = (nModifier & Keys.
Control
) == Keys.
Control
&& (nModifier & Keys.Alt) == 0;
16449
bool verticalScroll = ((ModifierKeys & Keys.
Control
) == 0);
19907
if ((keyData & (Keys.Shift | Keys.
Control
| Keys.Alt)) == Keys.
Control
&& MultiSelect)
20117
keyData &= ~Keys.
Control
;
20168
if ((keyData & Keys.
Control
) == Keys.
Control
)
20421
if ((keyData & Keys.
Control
) == Keys.
Control
)
20657
if ((keyData & Keys.
Control
) == Keys.
Control
)
20965
if ((keyData & Keys.
Control
) == Keys.
Control
)
21082
if ((keyData & Keys.
Control
) == 0)
21131
if ((keyData & Keys.
Control
) == 0)
21208
if ((keyData & Keys.
Control
) == 0)
21248
if ((keyData & Keys.
Control
) == 0)
21339
if ((keyData & Keys.
Control
) == 0)
21399
if ((keyData & Keys.
Control
) == 0)
21556
if ((keyData & Keys.
Control
) == 0)
21605
if ((keyData & Keys.
Control
) == 0)
21682
if ((keyData & Keys.
Control
) == 0)
21727
if ((keyData & Keys.
Control
) == 0)
21818
if ((keyData & Keys.
Control
) == 0)
21852
if (((keyData & (Keys.Shift | Keys.
Control
| Keys.Alt)) == Keys.
Control
21853
|| ((keyData & (Keys.Shift | Keys.
Control
| Keys.Alt)) == (Keys.
Control
| Keys.Shift)
22095
if ((keyData & Keys.
Control
) == Keys.
Control
)
22206
if ((keyData & Keys.
Control
) == Keys.
Control
)
22315
if ((keyData & Keys.
Control
) == Keys.
Control
)
22459
if ((keyData & Keys.
Control
) == Keys.
Control
)
23469
if ((keyData & Keys.
Control
) == Keys.
Control
)
23579
if ((keyData & Keys.
Control
) == Keys.
Control
)
23688
if ((keyData & Keys.
Control
) == Keys.
Control
)
23834
if ((keyData & Keys.
Control
) == Keys.
Control
)
24248
if ((keyData & (Keys.
Control
| Keys.Shift | Keys.Alt)) == Keys.Shift && _ptCurrentCell.X != -1)
24335
if ((keyData & Keys.
Control
) == Keys.
Control
)
24371
if ((keyData & Keys.
Control
) == Keys.
Control
)
24543
if ((keyData & Keys.
Control
) == Keys.
Control
)
24741
if ((keyData & Keys.
Control
) == Keys.
Control
)
24925
if ((keyData & Keys.
Control
) == Keys.
Control
)
25178
if ((keyData & Keys.
Control
) == Keys.
Control
)
25278
if ((keyData & (Keys.Alt | Keys.Shift | Keys.
Control
)) == Keys.
Control
&& IsCurrentCellInEditMode)
30013
if (GetTabKeyEffective((modifierKeys & Keys.Shift) == Keys.Shift, (modifierKeys & Keys.
Control
) == Keys.
Control
))
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (3)
204
if ((keyData & (Keys.
Control
| Keys.Shift | Keys.Alt)) == Keys.Shift && Multiline && AcceptsReturn)
271
if (m.MsgInternal == PInvokeCore.WM_CHAR && ModifierKeys == Keys.
Control
&& Multiline && AcceptsReturn)
280
if (m.MsgInternal == PInvokeCore.WM_KEYDOWN && ModifierKeys == Keys.
Control
)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1408
if ((keyData & (Keys.Alt | Keys.
Control
)) != Keys.Alt)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
3224
|| keyData.HasFlag(Keys.
Control
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
2611
if ((ModifierKeys & (Keys.Alt | Keys.
Control
)) != 0)
2913
if (e.KeyData == (Keys.C | Keys.Alt | Keys.Shift | Keys.
Control
))
3825
if (((keyData & Keys.
Control
) != 0) ||
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
525
if ((keyData & (Keys.Shift | Keys.
Control
| Keys.Alt)) == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (7)
187
if (((keyData & Keys.
Control
) != 0) && ((keyData & Keys.Shift) == 0) && ((keyData & Keys.Alt) == 0))
195
if (((keyData & Keys.
Control
) != 0) && ((keyData & Keys.Shift) == 0) && ((keyData & Keys.Alt) == 0))
206
if (((keyData & Keys.
Control
) != 0) ^ ((keyData & Keys.Shift) == 0))
215
if (((keyData & Keys.
Control
) == 0) && ((keyData & Keys.Shift) != 0) && ((keyData & Keys.Alt) == 0))
219
else if (((keyData & Keys.
Control
) == 0) && ((keyData & Keys.Shift) == 0) && ((keyData & Keys.Alt) == 0))
244
if ((keyData & (Keys.Shift | Keys.
Control
| Keys.Alt)) == 0)
266
if ((keyData & Keys.KeyCode) == Keys.Tab && ((keyData & (Keys.
Control
| Keys.Alt)) == 0))
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (2)
112
if ((modifierKeys & Keys.
Control
) == Keys.
Control
)
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
1376
if (ke.KeyCode == Keys.Tab && (ke.KeyData & Keys.
Control
) != 0)
1382
if (ke.KeyCode == Keys.PageDown && (ke.KeyData & Keys.
Control
) != 0)
1387
if (ke.KeyCode == Keys.PageUp && (ke.KeyData & Keys.
Control
) != 0)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1915
case Keys.
Control
:
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
692
if (!returnValue && ShortcutsEnabled && (keyData == (Keys.
Control
| Keys.A)))
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (6)
165
(int)Shortcut.CtrlE, (int)Shortcut.CtrlY, (int)Keys.
Control
+ (int)Keys.Back,
209
if (!ReadOnly && (keyData == (Keys.
Control
| Keys.Back) || keyData == (Keys.
Control
| Keys.Shift | Keys.Back)))
1333
return Multiline && _textBoxFlags[s_acceptsTab] && ((keyData & Keys.
Control
) == 0);
1408
if (keyCode == Keys.Tab && AcceptsTab && (keyData & Keys.
Control
) != 0)
1411
keyData &= ~Keys.
Control
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
2717
(keyData & Keys.
Control
) == Keys.
Control
&& (keyData & Keys.KeyCode) == Keys.Tab;
2759
bool hasModifiers = ((keyData & (Keys.Alt | Keys.
Control
)) != Keys.None);
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
477
else if ((ModifierKeys & (Keys.
Control
| Keys.Alt)) != 0)
System\Windows\Forms\Form.cs (1)
4693
if ((keyData & (Keys.Alt | Keys.
Control
)) == Keys.None)
System\Windows\Forms\Input\KeyEventArgs.cs (2)
30
public bool Control => (KeyData & Keys.
Control
) == Keys.
Control
;
System\Windows\Forms\Input\KeysConverter.cs (1)
45
AddLocalizedKey(nameof(SR.toStringControl), Keys.
Control
);
System\Windows\Forms\Input\PreviewKeyDownEventArgs.cs (2)
27
public bool Control => (KeyData & Keys.
Control
) == Keys.
Control
;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1195
if ((keyData & (Keys.Alt | Keys.
Control
)) == Keys.None)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
2299
if ((keyData & (Keys.Alt | Keys.
Control
)) == Keys.None)
System\Windows\Forms\Printing\PrintPreviewControl.cs (4)
909
if ((keyData & Keys.Modifiers) == Keys.
Control
)
942
if ((keyData & Keys.Modifiers) == Keys.
Control
)
976
if ((keyData & Keys.Modifiers) == Keys.
Control
)
983
if (_pageInfo is not null && (keyData & Keys.Modifiers) == Keys.
Control
)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (3)
1008
if ((keyData & (Keys.Alt | Keys.
Control
)) == Keys.None)
1019
else if ((keyData & Keys.
Control
) == Keys.
Control
)
System\Windows\Forms\SendKeys\SendKeys.cs (1)
493
if (haveKeys.HaveCtrl == 0 && (vk & (int)Keys.
Control
) != 0)
System\Windows\Forms\Shortcut.cs (98)
19
CtrlA = Keys.
Control
+ Keys.A,
24
CtrlB = Keys.
Control
+ Keys.B,
29
CtrlC = Keys.
Control
+ Keys.C,
34
CtrlD = Keys.
Control
+ Keys.D,
39
CtrlE = Keys.
Control
+ Keys.E,
44
CtrlF = Keys.
Control
+ Keys.F,
49
CtrlG = Keys.
Control
+ Keys.G,
54
CtrlH = Keys.
Control
+ Keys.H,
59
CtrlI = Keys.
Control
+ Keys.I,
64
CtrlJ = Keys.
Control
+ Keys.J,
69
CtrlK = Keys.
Control
+ Keys.K,
74
CtrlL = Keys.
Control
+ Keys.L,
79
CtrlM = Keys.
Control
+ Keys.M,
84
CtrlN = Keys.
Control
+ Keys.N,
89
CtrlO = Keys.
Control
+ Keys.O,
94
CtrlP = Keys.
Control
+ Keys.P,
99
CtrlQ = Keys.
Control
+ Keys.Q,
104
CtrlR = Keys.
Control
+ Keys.R,
109
CtrlS = Keys.
Control
+ Keys.S,
114
CtrlT = Keys.
Control
+ Keys.T,
119
CtrlU = Keys.
Control
+ Keys.U,
124
CtrlV = Keys.
Control
+ Keys.V,
129
CtrlW = Keys.
Control
+ Keys.W,
134
CtrlX = Keys.
Control
+ Keys.X,
139
CtrlY = Keys.
Control
+ Keys.Y,
144
CtrlZ = Keys.
Control
+ Keys.Z,
149
CtrlShiftA = Keys.
Control
+ Keys.Shift + Keys.A,
154
CtrlShiftB = Keys.
Control
+ Keys.Shift + Keys.B,
159
CtrlShiftC = Keys.
Control
+ Keys.Shift + Keys.C,
164
CtrlShiftD = Keys.
Control
+ Keys.Shift + Keys.D,
169
CtrlShiftE = Keys.
Control
+ Keys.Shift + Keys.E,
174
CtrlShiftF = Keys.
Control
+ Keys.Shift + Keys.F,
179
CtrlShiftG = Keys.
Control
+ Keys.Shift + Keys.G,
184
CtrlShiftH = Keys.
Control
+ Keys.Shift + Keys.H,
189
CtrlShiftI = Keys.
Control
+ Keys.Shift + Keys.I,
194
CtrlShiftJ = Keys.
Control
+ Keys.Shift + Keys.J,
199
CtrlShiftK = Keys.
Control
+ Keys.Shift + Keys.K,
204
CtrlShiftL = Keys.
Control
+ Keys.Shift + Keys.L,
209
CtrlShiftM = Keys.
Control
+ Keys.Shift + Keys.M,
214
CtrlShiftN = Keys.
Control
+ Keys.Shift + Keys.N,
219
CtrlShiftO = Keys.
Control
+ Keys.Shift + Keys.O,
224
CtrlShiftP = Keys.
Control
+ Keys.Shift + Keys.P,
229
CtrlShiftQ = Keys.
Control
+ Keys.Shift + Keys.Q,
234
CtrlShiftR = Keys.
Control
+ Keys.Shift + Keys.R,
239
CtrlShiftS = Keys.
Control
+ Keys.Shift + Keys.S,
244
CtrlShiftT = Keys.
Control
+ Keys.Shift + Keys.T,
249
CtrlShiftU = Keys.
Control
+ Keys.Shift + Keys.U,
254
CtrlShiftV = Keys.
Control
+ Keys.Shift + Keys.V,
259
CtrlShiftW = Keys.
Control
+ Keys.Shift + Keys.W,
264
CtrlShiftX = Keys.
Control
+ Keys.Shift + Keys.X,
269
CtrlShiftY = Keys.
Control
+ Keys.Shift + Keys.Y,
274
CtrlShiftZ = Keys.
Control
+ Keys.Shift + Keys.Z,
395
CtrlF1 = Keys.
Control
+ Keys.F1,
400
CtrlF2 = Keys.
Control
+ Keys.F2,
405
CtrlF3 = Keys.
Control
+ Keys.F3,
410
CtrlF4 = Keys.
Control
+ Keys.F4,
415
CtrlF5 = Keys.
Control
+ Keys.F5,
420
CtrlF6 = Keys.
Control
+ Keys.F6,
425
CtrlF7 = Keys.
Control
+ Keys.F7,
430
CtrlF8 = Keys.
Control
+ Keys.F8,
435
CtrlF9 = Keys.
Control
+ Keys.F9,
440
CtrlF10 = Keys.
Control
+ Keys.F10,
445
CtrlF11 = Keys.
Control
+ Keys.F11,
450
CtrlF12 = Keys.
Control
+ Keys.F12,
455
CtrlShiftF1 = Keys.
Control
+ Keys.Shift + Keys.F1,
460
CtrlShiftF2 = Keys.
Control
+ Keys.Shift + Keys.F2,
465
CtrlShiftF3 = Keys.
Control
+ Keys.Shift + Keys.F3,
470
CtrlShiftF4 = Keys.
Control
+ Keys.Shift + Keys.F4,
475
CtrlShiftF5 = Keys.
Control
+ Keys.Shift + Keys.F5,
480
CtrlShiftF6 = Keys.
Control
+ Keys.Shift + Keys.F6,
485
CtrlShiftF7 = Keys.
Control
+ Keys.Shift + Keys.F7,
490
CtrlShiftF8 = Keys.
Control
+ Keys.Shift + Keys.F8,
495
CtrlShiftF9 = Keys.
Control
+ Keys.Shift + Keys.F9,
500
CtrlShiftF10 = Keys.
Control
+ Keys.Shift + Keys.F10,
505
CtrlShiftF11 = Keys.
Control
+ Keys.Shift + Keys.F11,
510
CtrlShiftF12 = Keys.
Control
+ Keys.Shift + Keys.F12,
520
CtrlIns = Keys.
Control
+ Keys.Insert,
535
CtrlDel = Keys.
Control
+ Keys.Delete,
680
Ctrl0 = Keys.
Control
+ Keys.D0,
685
Ctrl1 = Keys.
Control
+ Keys.D1,
690
Ctrl2 = Keys.
Control
+ Keys.D2,
695
Ctrl3 = Keys.
Control
+ Keys.D3,
700
Ctrl4 = Keys.
Control
+ Keys.D4,
705
Ctrl5 = Keys.
Control
+ Keys.D5,
710
Ctrl6 = Keys.
Control
+ Keys.D6,
715
Ctrl7 = Keys.
Control
+ Keys.D7,
720
Ctrl8 = Keys.
Control
+ Keys.D8,
725
Ctrl9 = Keys.
Control
+ Keys.D9,
730
CtrlShift0 = Keys.
Control
+ Keys.Shift + Keys.D0,
735
CtrlShift1 = Keys.
Control
+ Keys.Shift + Keys.D1,
740
CtrlShift2 = Keys.
Control
+ Keys.Shift + Keys.D2,
745
CtrlShift3 = Keys.
Control
+ Keys.Shift + Keys.D3,
750
CtrlShift4 = Keys.
Control
+ Keys.Shift + Keys.D4,
755
CtrlShift5 = Keys.
Control
+ Keys.Shift + Keys.D5,
760
CtrlShift6 = Keys.
Control
+ Keys.Shift + Keys.D6,
765
CtrlShift7 = Keys.
Control
+ Keys.Shift + Keys.D7,
770
CtrlShift8 = Keys.
Control
+ Keys.Shift + Keys.D8,
775
CtrlShift9 = Keys.
Control
+ Keys.Shift + Keys.D9,
System.Windows.Forms.Design (43)
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (1)
77
if ((ModifierKeys & (Keys.
Control
| Keys.Alt)) != 0)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (2)
99
if ((keyData & Keys.
Control
) == Keys.
Control
)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
81
if ((keyData & Keys.
Control
) == 0)
106
if (e is { Control: true, KeyCode: Keys.Return, Modifiers: Keys.
Control
})
System\ComponentModel\Design\SelectionService.cs (1)
373
fToggle = (Control.ModifierKeys & (Keys.
Control
| Keys.Shift)) > 0;
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
337
&& (keyData & Keys.
Control
) == 0
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\Behavior\Behavior.cs (1)
330
e.Effect = (Control.ModifierKeys == Keys.
Control
) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
311
? Control.ModifierKeys == Keys.
Control
System\Windows\Forms\Design\ControlDesigner.cs (1)
1307
_ctrlSelect = (Control.ModifierKeys & Keys.
Control
) != 0;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1052
if ((modifierKeys & Keys.
Control
) != 0)
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1459
de.Effect = (Control.ModifierKeys == Keys.
Control
) ? DragDropEffects.Copy : DragDropEffects.Move;
1659
de.Effect = (Control.ModifierKeys == Keys.
Control
) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\PbrsForward.cs (1)
136
if ((Control.ModifierKeys & (Keys.
Control
| Keys.Alt)) != 0)
System\Windows\Forms\Design\SelectionUIService.cs (1)
538
_ctrlSelect = (ModifierKeys & Keys.
Control
) != Keys.None;
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (5)
275
if ((keyModifiers & (Keys.
Control
| Keys.Alt)) == 0)
287
if ((keyModifiers & (Keys.
Control
| Keys.Alt)) == 0)
306
(keyModifiers & (Keys.
Control
| Keys.Alt)) != 0 ||
327
_ctrlCheckBox.Checked = (keys & Keys.
Control
) != 0;
364
valueKeys |= Keys.
Control
;
System\Windows\Forms\Design\StandardMenuStripVerb.cs (9)
90
[/*File*/Keys.None, /*New*/Keys.
Control
| Keys.N, /*Open*/Keys.
Control
| Keys.O, /*Separator*/ Keys.None, /*Save*/ Keys.
Control
| Keys.S, /*SaveAs*/Keys.None, Keys.None, /*Print*/ Keys.
Control
| Keys.P, /*PrintPreview*/ Keys.None, /*Separator*/Keys.None, /*Exit*/ Keys.None],
91
[/*Edit*/Keys.None, /*Undo*/Keys.
Control
| Keys.Z, /*Redo*/Keys.
Control
| Keys.Y, /*Separator*/Keys.None, /*Cut*/ Keys.
Control
| Keys.X, /*Copy*/ Keys.
Control
| Keys.C, /*Paste*/Keys.
Control
| Keys.V, /*Separator*/ Keys.None, /*SelectAll*/Keys.None],
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1284
(_localDragControl is not null && existingControl is not null && Control.ModifierKeys == Keys.
Control
))
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
2286
de.Effect = (Control.ModifierKeys == Keys.
Control
) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (3)
352
bool removeSel = (Control.ModifierKeys & (Keys.
Control
| Keys.Shift)) > 0;
450
else if (shiftPressed || (Control.ModifierKeys & Keys.
Control
) > 0)
886
e.Effect = (Control.ModifierKeys == Keys.
Control
) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
2651
e.Effect = (Control.ModifierKeys == Keys.
Control
) ? DragDropEffects.Copy : DragDropEffects.Move;
2666
e.Effect = (Control.ModifierKeys == Keys.
Control
) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1109
if (e.KeyCode == Keys.A && (e.KeyData & Keys.
Control
) != 0)
1715
if ((keyData & (Keys.Alt | Keys.
Control
)) == Keys.None)
System.Windows.Forms.Tests (149)
System\Windows\Forms\ComboBoxTests.cs (1)
1722
tb.ProcessCmdKey(ref message, Keys.
Control
| Keys.Back);
System\Windows\Forms\ControlTests.Methods.cs (29)
4416
yield return new object[] { Keys.
Control
| Keys.Tab, false };
4417
yield return new object[] { Keys.
Control
| Keys.Up, false };
4418
yield return new object[] { Keys.
Control
| Keys.Down, false };
4419
yield return new object[] { Keys.
Control
| Keys.Left, false };
4420
yield return new object[] { Keys.
Control
| Keys.Right, false };
4421
yield return new object[] { Keys.
Control
| Keys.Return, false };
4422
yield return new object[] { Keys.
Control
| Keys.Escape, false };
4423
yield return new object[] { Keys.
Control
| Keys.A, false };
4424
yield return new object[] { Keys.
Control
| Keys.C, false };
4425
yield return new object[] { Keys.
Control
| Keys.Insert, false };
4426
yield return new object[] { Keys.
Control
| Keys.Space, false };
4427
yield return new object[] { Keys.
Control
| Keys.Home, false };
4428
yield return new object[] { Keys.
Control
| Keys.End, false };
4429
yield return new object[] { Keys.
Control
| Keys.Back, false };
4430
yield return new object[] { Keys.
Control
| Keys.Next, false };
4431
yield return new object[] { Keys.
Control
| Keys.Prior, false };
4432
yield return new object[] { Keys.
Control
| Keys.Delete, false };
4433
yield return new object[] { Keys.
Control
| Keys.D0, false };
4434
yield return new object[] { Keys.
Control
| Keys.NumPad0, false };
4435
yield return new object[] { Keys.
Control
| Keys.F1, false };
4436
yield return new object[] { Keys.
Control
| Keys.F2, false };
4437
yield return new object[] { Keys.
Control
| Keys.F3, false };
4438
yield return new object[] { Keys.
Control
| Keys.F4, false };
4439
yield return new object[] { Keys.
Control
| Keys.F10, false };
4440
yield return new object[] { Keys.
Control
| Keys.RButton, false };
4441
yield return new object[] { Keys.
Control
| Keys.PageUp, false };
4442
yield return new object[] { Keys.
Control
| Keys.PageDown, false };
4443
yield return new object[] { Keys.
Control
| Keys.Menu, false };
4444
yield return new object[] { Keys.
Control
| Keys.None, false };
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
1038
yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift | Keys.
Control
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1039
yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift | Keys.
Control
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
System\Windows\Forms\KeyEventArgsTests.cs (6)
11
[InlineData(Keys.
Control
| Keys.A)]
14
[InlineData(Keys.
Control
)]
17
[InlineData(Keys.
Control
| Keys.Alt | Keys.Shift | Keys.A)]
21
[InlineData(Keys.
Control
| Keys.Alt | Keys.Shift | (Keys)(0x5D))]
26
Assert.Equal((keyData & Keys.
Control
) == Keys.
Control
, e.Control);
System\Windows\Forms\KeysConverterTests.cs (21)
13
[InlineData("Ctrl+Alt+Shift+A", Keys.
Control
| Keys.Alt | Keys.Shift | Keys.A)]
14
[InlineData("Ctrl+Alt+Shift+F1", Keys.
Control
| Keys.Alt | Keys.Shift | Keys.F1)]
15
[InlineData("Ctrl+Alt+D", Keys.
Control
| Keys.Alt | Keys.D)]
16
[InlineData("Ctrl + N", Keys.
Control
| Keys.N)]
59
[InlineData(Keys.
Control
| Keys.C, "Ctrl+C")]
60
[InlineData(Keys.
Control
| Keys.Add, "Ctrl+Add")]
61
[InlineData(Keys.
Control
| Keys.Alt | Keys.D, "Ctrl+Alt+D")]
62
[InlineData(Keys.
Control
| Keys.Alt | Keys.Shift | Keys.A, "Ctrl+Alt+Shift+A")]
63
[InlineData(Keys.
Control
| Keys.Alt | Keys.Shift | Keys.F1, "Ctrl+Alt+Shift+F1")]
64
[InlineData(Keys.F2 | Keys.Shift | Keys.Alt | Keys.
Control
, "Ctrl+Alt+Shift+F2")]
89
yield return new object[] { "zh-CN", Keys.
Control
| Keys.C, new Enum[] { Keys.
Control
, Keys.C } };
90
yield return new object[] { "it-IT", Keys.
Control
| Keys.Add, new Enum[] { Keys.
Control
, Keys.Add } };
91
yield return new object[] { "ko-KR", Keys.
Control
| Keys.Alt | Keys.D, new Enum[] { Keys.
Control
, Keys.Alt, Keys.D } };
92
yield return new object[] { "ru-RU", Keys.
Control
| Keys.Alt | Keys.Shift | Keys.A, new Enum[] { Keys.
Control
, Keys.Alt, Keys.Shift, Keys.A } };
93
yield return new object[] { "zh-TW", Keys.
Control
| Keys.Alt | Keys.Shift | Keys.F1, new Enum[] { Keys.
Control
, Keys.Alt, Keys.Shift, Keys.F1 } };
146
Keys.None, Keys.D0, Keys.D1, Keys.D2, Keys.D3, Keys.D4, Keys.D5, Keys.D6, Keys.D7, Keys.D8, Keys.D9, Keys.Alt, Keys.Back, Keys.
Control
,
System\Windows\Forms\MenuStripTests.cs (6)
692
[InlineData(Keys.
Control
)]
694
[InlineData(Keys.
Control
& Keys.Tab)]
712
[InlineData(Keys.
Control
, true)]
713
[InlineData(Keys.
Control
, false)]
716
[InlineData(Keys.
Control
& Keys.Tab, true)]
717
[InlineData(Keys.
Control
& Keys.Tab, false)]
System\Windows\Forms\PreviewKeyDownEventArgsTests.cs (6)
11
[InlineData(Keys.
Control
| Keys.A)]
14
[InlineData(Keys.
Control
)]
17
[InlineData(Keys.
Control
| Keys.Alt | Keys.Shift | Keys.A)]
21
[InlineData(Keys.
Control
| Keys.Alt | Keys.Shift | (Keys)(0x5D))]
26
Assert.Equal((keyData & Keys.
Control
) == Keys.
Control
, e.Control);
System\Windows\Forms\PrintPreviewDialogTests.cs (1)
17
testPrintPreviewDialog.TestProcessDialogKey(Keys.
Control
| digitKey);
System\Windows\Forms\SendKeysTests.cs (2)
21
Assert.Equal(Keys.
Control
, form.KeyEvents[1].Modifiers);
24
Assert.Equal(Keys.
Control
, form.KeyEvents[3].Modifiers);
System\Windows\Forms\TabControlTests.cs (31)
4017
yield return new object[] { Keys.
Control
| Keys.Tab, false };
4018
yield return new object[] { Keys.
Control
| Keys.Return, false };
4019
yield return new object[] { Keys.
Control
| Keys.Escape, false };
4020
yield return new object[] { Keys.
Control
| Keys.A, false };
4021
yield return new object[] { Keys.
Control
| Keys.C, false };
4022
yield return new object[] { Keys.
Control
| Keys.Insert, false };
4023
yield return new object[] { Keys.
Control
| Keys.Space, false };
4024
yield return new object[] { Keys.
Control
| Keys.Home, true };
4025
yield return new object[] { Keys.
Control
| Keys.End, true };
4027
yield return new object[] { Keys.
Control
| Keys.Back, false };
4028
yield return new object[] { Keys.
Control
| Keys.Next, true };
4029
yield return new object[] { Keys.
Control
| Keys.Prior, true };
4030
yield return new object[] { Keys.
Control
| Keys.Delete, false };
4031
yield return new object[] { Keys.
Control
| Keys.D0, false };
4032
yield return new object[] { Keys.
Control
| Keys.NumPad0, false };
4033
yield return new object[] { Keys.
Control
| Keys.F1, false };
4034
yield return new object[] { Keys.
Control
| Keys.F2, false };
4035
yield return new object[] { Keys.
Control
| Keys.F3, false };
4036
yield return new object[] { Keys.
Control
| Keys.F4, false };
4037
yield return new object[] { Keys.
Control
| Keys.RButton, false };
4038
yield return new object[] { Keys.
Control
| Keys.PageUp, true };
4039
yield return new object[] { Keys.
Control
| Keys.PageDown, true };
4040
yield return new object[] { Keys.
Control
| Keys.None, false };
4078
[InlineData(Keys.
Control
| Keys.Up, false)]
4079
[InlineData(Keys.
Control
| Keys.Down, false)]
4080
[InlineData(Keys.
Control
| Keys.Left, false)]
4081
[InlineData(Keys.
Control
| Keys.Right, false)]
4095
[InlineData(Keys.
Control
| Keys.Up, true)]
4096
[InlineData(Keys.
Control
| Keys.Down, true)]
4097
[InlineData(Keys.
Control
| Keys.Left, true)]
4098
[InlineData(Keys.
Control
| Keys.Right, true)]
System\Windows\Forms\ToolStripMenuItemTests.cs (10)
126
[InlineData(Keys.
Control
| Keys.Add)]
127
[InlineData(Keys.
Control
| Keys.Alt | Keys.D)]
128
[InlineData(Keys.
Control
| Keys.Alt | Keys.Shift | Keys.A)]
129
[InlineData(Keys.
Control
| Keys.Alt | Keys.Shift | Keys.F1)]
139
[InlineData(Keys.
Control
)]
140
[InlineData(Keys.
Control
| Keys.Alt)]
141
[InlineData(Keys.
Control
| Keys.Alt | Keys.Shift)]
158
item.ShortcutKeys = Keys.
Control
| Keys.Shift | Keys.K;
228
Keys shortcutKeys = Keys.
Control
| Keys.A;
299
ShortcutKeys = Keys.
Control
| Keys.A,
System\Windows\Forms\ToolStripTests.cs (6)
6914
[InlineData(Keys.
Control
)]
6916
[InlineData(Keys.
Control
& Keys.Tab)]
6934
[InlineData(Keys.
Control
, true)]
6935
[InlineData(Keys.
Control
, false)]
6938
[InlineData(Keys.
Control
& Keys.Tab, true)]
6939
[InlineData(Keys.
Control
& Keys.Tab, false)]
System\Windows\Forms\TreeViewTests.cs (5)
5733
yield return new object[] { new KeyEventArgs(Keys.
Control
| Keys.Space) };
5766
yield return new object[] { false, true, false, new KeyEventArgs(Keys.
Control
| Keys.Space), 1, 1, true };
5767
yield return new object[] { false, true, true, new KeyEventArgs(Keys.
Control
| Keys.Space), 1, 0, true };
5898
yield return new object[] { true, new KeyEventArgs(Keys.
Control
| Keys.Space), true };
5903
yield return new object[] { false, new KeyEventArgs(Keys.
Control
| Keys.Space), true };
TextBoxBaseTests.cs (23)
5186
yield return new object[] { multiline, acceptsTab, readOnly, Keys.Tab | Keys.
Control
, false };
5837
yield return new object[] { shortcutsEnabled, readOnly, Keys.
Control
| Keys.Back, !shortcutsEnabled || !readOnly };
5838
yield return new object[] { shortcutsEnabled, readOnly, Keys.
Control
| Keys.Shift | Keys.Back, !shortcutsEnabled || !readOnly };
5942
Assert.True(control.ProcessCmdKey(ref message, Keys.
Control
| Keys.Back));
5956
Assert.False(control.ProcessCmdKey(ref message, Keys.
Control
| Keys.Back));
5971
Assert.True(control.ProcessCmdKey(ref message, Keys.
Control
| Keys.Back));
5989
Assert.True(control.ProcessCmdKey(ref message, Keys.
Control
| Keys.Back));
6006
Assert.True(control.ProcessCmdKey(ref message, Keys.
Control
| Keys.Back));
6015
[InlineData(true, Keys.
Control
| Keys.Tab)]
6016
[InlineData(false, Keys.
Control
| Keys.Tab)]
6017
[InlineData(true, Keys.
Control
| Keys.A)]
6018
[InlineData(false, Keys.
Control
| Keys.A)]
6034
[InlineData(true, Keys.
Control
| Keys.Tab)]
6035
[InlineData(false, Keys.
Control
| Keys.Tab)]
6036
[InlineData(true, Keys.
Control
| Keys.A)]
6037
[InlineData(false, Keys.
Control
| Keys.A)]
6055
[InlineData(true, Keys.
Control
| Keys.Tab, Keys.Tab, true)]
6056
[InlineData(false, Keys.
Control
| Keys.Tab, Keys.
Control
| Keys.Tab, false)]
6057
[InlineData(true, Keys.
Control
| Keys.A, Keys.
Control
| Keys.A, true)]
6058
[InlineData(false, Keys.
Control
| Keys.A, Keys.
Control
| Keys.A, false)]
WindowsFormsIntegration (3)
System\Windows\Integration\Convert.cs (2)
198
if ((keyData & SWF.Keys.
Control
) == SWF.Keys.
Control
)
System\Windows\Integration\WindowsFormsHost.cs (1)
931
if ((keyData & (Keys.Alt | Keys.
Control
)) == Keys.None)
WinFormsControlsTest (3)
MenuStripAndCheckedListBox.Designer.cs (3)
97
this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.
Control
| System.Windows.Forms.Keys.N)));
105
this.openToolStripMenuItem1.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.
Control
| System.Windows.Forms.Keys.O)));
231
this.uncheckedCheckOnClickToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.
Control
| System.Windows.Forms.Keys.C)));