433 references to Control
Accessibility_Core_App (9)
Menu_Toolbars_controls.Designer.cs (9)
167newToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.N; 176openToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.O; 190saveToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.S; 210printToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.P; 244undoToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Z; 251redoToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Y; 265cutToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.X; 274copyToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.C; 283pasteToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.V;
DesignSurface (5)
MainForm.Designer.cs (5)
193this.ToolStripMenuItemUnDo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z))); 201this.ToolStripMenuItemReDo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y))); 216this.ToolStripMenuItemCut.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X))); 226this.ToolStripMenuItemCopy.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C))); 236this.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)
47Return CType(keys And Keys.Control, Boolean)
System.Windows.Forms (220)
System\Windows\Forms\Control.cs (1)
2522modifiers |= Keys.Control;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2929if (!returnedValue && keyData == (Keys.Control | Keys.A)) 2940&& (keyData == (Keys.Control | Keys.Back) || keyData == (Keys.Control | Keys.Shift | Keys.Back)))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (69)
10084return GetTabKeyEffective((keyData & Keys.Shift) == Keys.Shift, (keyData & Keys.Control) == Keys.Control); 10089if ((keyData & (Keys.Control | Keys.Shift | Keys.Alt)) == Keys.Control) 10100if ((keyData & (Keys.Control | Keys.Shift | Keys.Alt)) == Keys.Control) 10110if ((keyData & (Keys.Control | Keys.Shift | Keys.Alt)) == Keys.Shift 11899bool isControlDown = (nModifier & Keys.Control) == Keys.Control && (nModifier & Keys.Alt) == 0; 16468bool verticalScroll = ((ModifierKeys & Keys.Control) == 0); 19927if ((keyData & (Keys.Shift | Keys.Control | Keys.Alt)) == Keys.Control && MultiSelect) 20137keyData &= ~Keys.Control; 20183if ((keyData & Keys.Control) == Keys.Control) 20436if ((keyData & Keys.Control) == Keys.Control) 20672if ((keyData & Keys.Control) == Keys.Control) 20980if ((keyData & Keys.Control) == Keys.Control) 21097if ((keyData & Keys.Control) == 0) 21146if ((keyData & Keys.Control) == 0) 21223if ((keyData & Keys.Control) == 0) 21263if ((keyData & Keys.Control) == 0) 21354if ((keyData & Keys.Control) == 0) 21414if ((keyData & Keys.Control) == 0) 21571if ((keyData & Keys.Control) == 0) 21620if ((keyData & Keys.Control) == 0) 21697if ((keyData & Keys.Control) == 0) 21742if ((keyData & Keys.Control) == 0) 21833if ((keyData & Keys.Control) == 0) 21867if (((keyData & (Keys.Shift | Keys.Control | Keys.Alt)) == Keys.Control 21868|| ((keyData & (Keys.Shift | Keys.Control | Keys.Alt)) == (Keys.Control | Keys.Shift) 22110if ((keyData & Keys.Control) == Keys.Control) 22221if ((keyData & Keys.Control) == Keys.Control) 22330if ((keyData & Keys.Control) == Keys.Control) 22474if ((keyData & Keys.Control) == Keys.Control) 23489if ((keyData & Keys.Control) == Keys.Control) 23599if ((keyData & Keys.Control) == Keys.Control) 23708if ((keyData & Keys.Control) == Keys.Control) 23854if ((keyData & Keys.Control) == Keys.Control) 24268if ((keyData & (Keys.Control | Keys.Shift | Keys.Alt)) == Keys.Shift && _ptCurrentCell.X != -1) 24355if ((keyData & Keys.Control) == Keys.Control) 24391if ((keyData & Keys.Control) == Keys.Control) 24563if ((keyData & Keys.Control) == Keys.Control) 24761if ((keyData & Keys.Control) == Keys.Control) 24945if ((keyData & Keys.Control) == Keys.Control) 25198if ((keyData & Keys.Control) == Keys.Control) 25298if ((keyData & (Keys.Alt | Keys.Shift | Keys.Control)) == Keys.Control && IsCurrentCellInEditMode) 30032if (GetTabKeyEffective((modifierKeys & Keys.Shift) == Keys.Shift, (modifierKeys & Keys.Control) == Keys.Control))
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (3)
202if ((keyData & (Keys.Control | Keys.Shift | Keys.Alt)) == Keys.Shift && Multiline && AcceptsReturn) 269if (m.MsgInternal == PInvokeCore.WM_CHAR && ModifierKeys == Keys.Control && Multiline && AcceptsReturn) 278if (m.MsgInternal == PInvokeCore.WM_KEYDOWN && ModifierKeys == Keys.Control)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1408if ((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)
2612if ((ModifierKeys & (Keys.Alt | Keys.Control)) != 0) 2914if (e.KeyData == (Keys.C | Keys.Alt | Keys.Shift | Keys.Control)) 3825if (((keyData & Keys.Control) != 0) ||
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
525if ((keyData & (Keys.Shift | Keys.Control | Keys.Alt)) == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (7)
190if (((keyData & Keys.Control) != 0) && ((keyData & Keys.Shift) == 0) && ((keyData & Keys.Alt) == 0)) 198if (((keyData & Keys.Control) != 0) && ((keyData & Keys.Shift) == 0) && ((keyData & Keys.Alt) == 0)) 209if (((keyData & Keys.Control) != 0) ^ ((keyData & Keys.Shift) == 0)) 218if (((keyData & Keys.Control) == 0) && ((keyData & Keys.Shift) != 0) && ((keyData & Keys.Alt) == 0)) 222else if (((keyData & Keys.Control) == 0) && ((keyData & Keys.Shift) == 0) && ((keyData & Keys.Alt) == 0)) 247if ((keyData & (Keys.Shift | Keys.Control | Keys.Alt)) == 0) 269if ((keyData & Keys.KeyCode) == Keys.Tab && ((keyData & (Keys.Control | Keys.Alt)) == 0))
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (2)
112if ((modifierKeys & Keys.Control) == Keys.Control)
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
1376if (ke.KeyCode == Keys.Tab && (ke.KeyData & Keys.Control) != 0) 1382if (ke.KeyCode == Keys.PageDown && (ke.KeyData & Keys.Control) != 0) 1387if (ke.KeyCode == Keys.PageUp && (ke.KeyData & Keys.Control) != 0)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1915case Keys.Control:
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
692if (!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, 209if (!ReadOnly && (keyData == (Keys.Control | Keys.Back) || keyData == (Keys.Control | Keys.Shift | Keys.Back))) 1325return Multiline && _textBoxFlags[s_acceptsTab] && ((keyData & Keys.Control) == 0); 1400if (keyCode == Keys.Tab && AcceptsTab && (keyData & Keys.Control) != 0) 1403keyData &= ~Keys.Control;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
2715(keyData & Keys.Control) == Keys.Control && (keyData & Keys.KeyCode) == Keys.Tab; 2757bool hasModifiers = ((keyData & (Keys.Alt | Keys.Control)) != Keys.None);
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
477else if ((ModifierKeys & (Keys.Control | Keys.Alt)) != 0)
System\Windows\Forms\Form.cs (1)
4693if ((keyData & (Keys.Alt | Keys.Control)) == Keys.None)
System\Windows\Forms\Input\KeyEventArgs.cs (2)
30public bool Control => (KeyData & Keys.Control) == Keys.Control;
System\Windows\Forms\Input\KeysConverter.cs (1)
45AddLocalizedKey(nameof(SR.toStringControl), Keys.Control);
System\Windows\Forms\Input\PreviewKeyDownEventArgs.cs (2)
27public bool Control => (KeyData & Keys.Control) == Keys.Control;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1195if ((keyData & (Keys.Alt | Keys.Control)) == Keys.None)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
2299if ((keyData & (Keys.Alt | Keys.Control)) == Keys.None)
System\Windows\Forms\Printing\PrintPreviewControl.cs (4)
915if ((keyData & Keys.Modifiers) == Keys.Control) 948if ((keyData & Keys.Modifiers) == Keys.Control) 982if ((keyData & Keys.Modifiers) == Keys.Control) 989if (_pageInfo is not null && (keyData & Keys.Modifiers) == Keys.Control)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (3)
1008if ((keyData & (Keys.Alt | Keys.Control)) == Keys.None) 1019else if ((keyData & Keys.Control) == Keys.Control)
System\Windows\Forms\SendKeys\SendKeys.cs (1)
493if (haveKeys.HaveCtrl == 0 && (vk & (int)Keys.Control) != 0)
System\Windows\Forms\Shortcut.cs (98)
19CtrlA = Keys.Control + Keys.A, 24CtrlB = Keys.Control + Keys.B, 29CtrlC = Keys.Control + Keys.C, 34CtrlD = Keys.Control + Keys.D, 39CtrlE = Keys.Control + Keys.E, 44CtrlF = Keys.Control + Keys.F, 49CtrlG = Keys.Control + Keys.G, 54CtrlH = Keys.Control + Keys.H, 59CtrlI = Keys.Control + Keys.I, 64CtrlJ = Keys.Control + Keys.J, 69CtrlK = Keys.Control + Keys.K, 74CtrlL = Keys.Control + Keys.L, 79CtrlM = Keys.Control + Keys.M, 84CtrlN = Keys.Control + Keys.N, 89CtrlO = Keys.Control + Keys.O, 94CtrlP = Keys.Control + Keys.P, 99CtrlQ = Keys.Control + Keys.Q, 104CtrlR = Keys.Control + Keys.R, 109CtrlS = Keys.Control + Keys.S, 114CtrlT = Keys.Control + Keys.T, 119CtrlU = Keys.Control + Keys.U, 124CtrlV = Keys.Control + Keys.V, 129CtrlW = Keys.Control + Keys.W, 134CtrlX = Keys.Control + Keys.X, 139CtrlY = Keys.Control + Keys.Y, 144CtrlZ = Keys.Control + Keys.Z, 149CtrlShiftA = Keys.Control + Keys.Shift + Keys.A, 154CtrlShiftB = Keys.Control + Keys.Shift + Keys.B, 159CtrlShiftC = Keys.Control + Keys.Shift + Keys.C, 164CtrlShiftD = Keys.Control + Keys.Shift + Keys.D, 169CtrlShiftE = Keys.Control + Keys.Shift + Keys.E, 174CtrlShiftF = Keys.Control + Keys.Shift + Keys.F, 179CtrlShiftG = Keys.Control + Keys.Shift + Keys.G, 184CtrlShiftH = Keys.Control + Keys.Shift + Keys.H, 189CtrlShiftI = Keys.Control + Keys.Shift + Keys.I, 194CtrlShiftJ = Keys.Control + Keys.Shift + Keys.J, 199CtrlShiftK = Keys.Control + Keys.Shift + Keys.K, 204CtrlShiftL = Keys.Control + Keys.Shift + Keys.L, 209CtrlShiftM = Keys.Control + Keys.Shift + Keys.M, 214CtrlShiftN = Keys.Control + Keys.Shift + Keys.N, 219CtrlShiftO = Keys.Control + Keys.Shift + Keys.O, 224CtrlShiftP = Keys.Control + Keys.Shift + Keys.P, 229CtrlShiftQ = Keys.Control + Keys.Shift + Keys.Q, 234CtrlShiftR = Keys.Control + Keys.Shift + Keys.R, 239CtrlShiftS = Keys.Control + Keys.Shift + Keys.S, 244CtrlShiftT = Keys.Control + Keys.Shift + Keys.T, 249CtrlShiftU = Keys.Control + Keys.Shift + Keys.U, 254CtrlShiftV = Keys.Control + Keys.Shift + Keys.V, 259CtrlShiftW = Keys.Control + Keys.Shift + Keys.W, 264CtrlShiftX = Keys.Control + Keys.Shift + Keys.X, 269CtrlShiftY = Keys.Control + Keys.Shift + Keys.Y, 274CtrlShiftZ = Keys.Control + Keys.Shift + Keys.Z, 395CtrlF1 = Keys.Control + Keys.F1, 400CtrlF2 = Keys.Control + Keys.F2, 405CtrlF3 = Keys.Control + Keys.F3, 410CtrlF4 = Keys.Control + Keys.F4, 415CtrlF5 = Keys.Control + Keys.F5, 420CtrlF6 = Keys.Control + Keys.F6, 425CtrlF7 = Keys.Control + Keys.F7, 430CtrlF8 = Keys.Control + Keys.F8, 435CtrlF9 = Keys.Control + Keys.F9, 440CtrlF10 = Keys.Control + Keys.F10, 445CtrlF11 = Keys.Control + Keys.F11, 450CtrlF12 = Keys.Control + Keys.F12, 455CtrlShiftF1 = Keys.Control + Keys.Shift + Keys.F1, 460CtrlShiftF2 = Keys.Control + Keys.Shift + Keys.F2, 465CtrlShiftF3 = Keys.Control + Keys.Shift + Keys.F3, 470CtrlShiftF4 = Keys.Control + Keys.Shift + Keys.F4, 475CtrlShiftF5 = Keys.Control + Keys.Shift + Keys.F5, 480CtrlShiftF6 = Keys.Control + Keys.Shift + Keys.F6, 485CtrlShiftF7 = Keys.Control + Keys.Shift + Keys.F7, 490CtrlShiftF8 = Keys.Control + Keys.Shift + Keys.F8, 495CtrlShiftF9 = Keys.Control + Keys.Shift + Keys.F9, 500CtrlShiftF10 = Keys.Control + Keys.Shift + Keys.F10, 505CtrlShiftF11 = Keys.Control + Keys.Shift + Keys.F11, 510CtrlShiftF12 = Keys.Control + Keys.Shift + Keys.F12, 520CtrlIns = Keys.Control + Keys.Insert, 535CtrlDel = Keys.Control + Keys.Delete, 680Ctrl0 = Keys.Control + Keys.D0, 685Ctrl1 = Keys.Control + Keys.D1, 690Ctrl2 = Keys.Control + Keys.D2, 695Ctrl3 = Keys.Control + Keys.D3, 700Ctrl4 = Keys.Control + Keys.D4, 705Ctrl5 = Keys.Control + Keys.D5, 710Ctrl6 = Keys.Control + Keys.D6, 715Ctrl7 = Keys.Control + Keys.D7, 720Ctrl8 = Keys.Control + Keys.D8, 725Ctrl9 = Keys.Control + Keys.D9, 730CtrlShift0 = Keys.Control + Keys.Shift + Keys.D0, 735CtrlShift1 = Keys.Control + Keys.Shift + Keys.D1, 740CtrlShift2 = Keys.Control + Keys.Shift + Keys.D2, 745CtrlShift3 = Keys.Control + Keys.Shift + Keys.D3, 750CtrlShift4 = Keys.Control + Keys.Shift + Keys.D4, 755CtrlShift5 = Keys.Control + Keys.Shift + Keys.D5, 760CtrlShift6 = Keys.Control + Keys.Shift + Keys.D6, 765CtrlShift7 = Keys.Control + Keys.Shift + Keys.D7, 770CtrlShift8 = Keys.Control + Keys.Shift + Keys.D8, 775CtrlShift9 = Keys.Control + Keys.Shift + Keys.D9,
System.Windows.Forms.Design (43)
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (1)
77if ((ModifierKeys & (Keys.Control | Keys.Alt)) != 0)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (2)
99if ((keyData & Keys.Control) == Keys.Control)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
81if ((keyData & Keys.Control) == 0) 106if (e is { Control: true, KeyCode: Keys.Return, Modifiers: Keys.Control })
System\ComponentModel\Design\SelectionService.cs (1)
373fToggle = (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)
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\Behavior\Behavior.cs (1)
330e.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)
1050if ((modifierKeys & Keys.Control) != 0)
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1459de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move; 1660de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\PbrsForward.cs (1)
136if ((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)
275if ((keyModifiers & (Keys.Control | Keys.Alt)) == 0) 287if ((keyModifiers & (Keys.Control | Keys.Alt)) == 0) 306(keyModifiers & (Keys.Control | Keys.Alt)) != 0 || 327_ctrlCheckBox.Checked = (keys & Keys.Control) != 0; 364valueKeys |= 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)
2285de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (3)
352bool removeSel = (Control.ModifierKeys & (Keys.Control | Keys.Shift)) > 0; 450else if (shiftPressed || (Control.ModifierKeys & Keys.Control) > 0) 886e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
2651e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move; 2666e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1109if (e.KeyCode == Keys.A && (e.KeyData & Keys.Control) != 0) 1715if ((keyData & (Keys.Alt | Keys.Control)) == Keys.None)
System.Windows.Forms.Tests (149)
System\Windows\Forms\ComboBoxTests.cs (1)
1722tb.ProcessCmdKey(ref message, Keys.Control | Keys.Back);
System\Windows\Forms\ControlTests.Methods.cs (29)
4425yield return new object[] { Keys.Control | Keys.Tab, false }; 4426yield return new object[] { Keys.Control | Keys.Up, false }; 4427yield return new object[] { Keys.Control | Keys.Down, false }; 4428yield return new object[] { Keys.Control | Keys.Left, false }; 4429yield return new object[] { Keys.Control | Keys.Right, false }; 4430yield return new object[] { Keys.Control | Keys.Return, false }; 4431yield return new object[] { Keys.Control | Keys.Escape, false }; 4432yield return new object[] { Keys.Control | Keys.A, false }; 4433yield return new object[] { Keys.Control | Keys.C, false }; 4434yield return new object[] { Keys.Control | Keys.Insert, false }; 4435yield return new object[] { Keys.Control | Keys.Space, false }; 4436yield return new object[] { Keys.Control | Keys.Home, false }; 4437yield return new object[] { Keys.Control | Keys.End, false }; 4438yield return new object[] { Keys.Control | Keys.Back, false }; 4439yield return new object[] { Keys.Control | Keys.Next, false }; 4440yield return new object[] { Keys.Control | Keys.Prior, false }; 4441yield return new object[] { Keys.Control | Keys.Delete, false }; 4442yield return new object[] { Keys.Control | Keys.D0, false }; 4443yield return new object[] { Keys.Control | Keys.NumPad0, false }; 4444yield return new object[] { Keys.Control | Keys.F1, false }; 4445yield return new object[] { Keys.Control | Keys.F2, false }; 4446yield return new object[] { Keys.Control | Keys.F3, false }; 4447yield return new object[] { Keys.Control | Keys.F4, false }; 4448yield return new object[] { Keys.Control | Keys.F10, false }; 4449yield return new object[] { Keys.Control | Keys.RButton, false }; 4450yield return new object[] { Keys.Control | Keys.PageUp, false }; 4451yield return new object[] { Keys.Control | Keys.PageDown, false }; 4452yield return new object[] { Keys.Control | Keys.Menu, false }; 4453yield return new object[] { Keys.Control | Keys.None, false };
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
1038yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.Enter | Keys.Shift | Keys.Control, dataGridViewWantsInputKey, !dataGridViewWantsInputKey }; 1039yield 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))] 26Assert.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")] 89yield return new object[] { "zh-CN", Keys.Control | Keys.C, new Enum[] { Keys.Control, Keys.C } }; 90yield return new object[] { "it-IT", Keys.Control | Keys.Add, new Enum[] { Keys.Control, Keys.Add } }; 91yield return new object[] { "ko-KR", Keys.Control | Keys.Alt | Keys.D, new Enum[] { Keys.Control, Keys.Alt, Keys.D } }; 92yield return new object[] { "ru-RU", Keys.Control | Keys.Alt | Keys.Shift | Keys.A, new Enum[] { Keys.Control, Keys.Alt, Keys.Shift, Keys.A } }; 93yield return new object[] { "zh-TW", Keys.Control | Keys.Alt | Keys.Shift | Keys.F1, new Enum[] { Keys.Control, Keys.Alt, Keys.Shift, Keys.F1 } }; 146Keys.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))] 26Assert.Equal((keyData & Keys.Control) == Keys.Control, e.Control);
System\Windows\Forms\PrintPreviewDialogTests.cs (1)
17testPrintPreviewDialog.TestProcessDialogKey(Keys.Control | digitKey);
System\Windows\Forms\SendKeysTests.cs (2)
21Assert.Equal(Keys.Control, form.KeyEvents[1].Modifiers); 24Assert.Equal(Keys.Control, form.KeyEvents[3].Modifiers);
System\Windows\Forms\TabControlTests.cs (31)
4017yield return new object[] { Keys.Control | Keys.Tab, false }; 4018yield return new object[] { Keys.Control | Keys.Return, false }; 4019yield return new object[] { Keys.Control | Keys.Escape, false }; 4020yield return new object[] { Keys.Control | Keys.A, false }; 4021yield return new object[] { Keys.Control | Keys.C, false }; 4022yield return new object[] { Keys.Control | Keys.Insert, false }; 4023yield return new object[] { Keys.Control | Keys.Space, false }; 4024yield return new object[] { Keys.Control | Keys.Home, true }; 4025yield return new object[] { Keys.Control | Keys.End, true }; 4027yield return new object[] { Keys.Control | Keys.Back, false }; 4028yield return new object[] { Keys.Control | Keys.Next, true }; 4029yield return new object[] { Keys.Control | Keys.Prior, true }; 4030yield return new object[] { Keys.Control | Keys.Delete, false }; 4031yield return new object[] { Keys.Control | Keys.D0, false }; 4032yield return new object[] { Keys.Control | Keys.NumPad0, false }; 4033yield return new object[] { Keys.Control | Keys.F1, false }; 4034yield return new object[] { Keys.Control | Keys.F2, false }; 4035yield return new object[] { Keys.Control | Keys.F3, false }; 4036yield return new object[] { Keys.Control | Keys.F4, false }; 4037yield return new object[] { Keys.Control | Keys.RButton, false }; 4038yield return new object[] { Keys.Control | Keys.PageUp, true }; 4039yield return new object[] { Keys.Control | Keys.PageDown, true }; 4040yield 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)] 158item.ShortcutKeys = Keys.Control | Keys.Shift | Keys.K; 228Keys shortcutKeys = Keys.Control | Keys.A; 299ShortcutKeys = 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)
5733yield return new object[] { new KeyEventArgs(Keys.Control | Keys.Space) }; 5766yield return new object[] { false, true, false, new KeyEventArgs(Keys.Control | Keys.Space), 1, 1, true }; 5767yield return new object[] { false, true, true, new KeyEventArgs(Keys.Control | Keys.Space), 1, 0, true }; 5898yield return new object[] { true, new KeyEventArgs(Keys.Control | Keys.Space), true }; 5903yield return new object[] { false, new KeyEventArgs(Keys.Control | Keys.Space), true };
TextBoxBaseTests.cs (23)
5186yield return new object[] { multiline, acceptsTab, readOnly, Keys.Tab | Keys.Control, false }; 5837yield return new object[] { shortcutsEnabled, readOnly, Keys.Control | Keys.Back, !shortcutsEnabled || !readOnly }; 5838yield return new object[] { shortcutsEnabled, readOnly, Keys.Control | Keys.Shift | Keys.Back, !shortcutsEnabled || !readOnly }; 5942Assert.True(control.ProcessCmdKey(ref message, Keys.Control | Keys.Back)); 5956Assert.False(control.ProcessCmdKey(ref message, Keys.Control | Keys.Back)); 5971Assert.True(control.ProcessCmdKey(ref message, Keys.Control | Keys.Back)); 5989Assert.True(control.ProcessCmdKey(ref message, Keys.Control | Keys.Back)); 6006Assert.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)
195if ((keyData & SWF.Keys.Control) == SWF.Keys.Control)
System\Windows\Integration\WindowsFormsHost.cs (1)
929if ((keyData & (Keys.Alt | Keys.Control)) == Keys.None)
WinFormsControlsTest (3)
MenuStripAndCheckedListBox.Designer.cs (3)
97this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); 105this.openToolStripMenuItem1.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); 231this.uncheckedCheckOnClickToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));