245 references to Control
System.Web.Mobile (4)
UI\MobileControls\Design\StylesEditorDialog.cs (2)
910
case (Keys.
Control
| Keys.Home):
918
case (Keys.
Control
| Keys.End):
UI\MobileControls\Design\Util\EditableTreeList.cs (2)
243
case (Keys.
Control
| Keys.Home):
251
case (Keys.
Control
| Keys.End):
System.Windows.Forms (238)
winforms\Managed\System\WinForms\ContainerControl.cs (1)
1188
if ((keyData & (Keys.Alt | Keys.
Control
)) == Keys.None) {
winforms\Managed\System\WinForms\Control.cs (1)
3344
if (UnsafeNativeMethods.GetKeyState((int)Keys.ControlKey) < 0) modifiers |= Keys.
Control
;
winforms\Managed\System\WinForms\DataGrid.cs (14)
4022
bool isControlDown = (nModifier & Keys.
Control
) == Keys.
Control
&& (nModifier & Keys.Alt) == 0;
4263
&& !(((Control.ModifierKeys & Keys.
Control
) == Keys.
Control
) && (Control.ModifierKeys & Keys.Alt) == 0)){
4366
if ((ModifierKeys & Keys.
Control
) != 0)
7503
if ((keyData & Keys.
Control
) != 0 && (keyData & Keys.Alt) == 0)
7978
if ((biDiKe.Modifiers & Keys.
Control
) == Keys.
Control
)
8010
if ((biDiKe.Modifiers & Keys.
Control
) == Keys.
Control
&& !biDiKe.Alt)
8140
if ((biDiKe.Modifiers & Keys.
Control
) != 0 && !biDiKe.Alt)
8270
if ((keyData & Keys.
Control
) == Keys.
Control
)
8277
Keys ke = keyData & ~(Keys.
Control
);
winforms\Managed\System\WinForms\DataGridColumn.cs (2)
1047
if (keyData == (Keys.
Control
| Keys.NumPad0) || keyData == (Keys.
Control
| Keys.D0)) {
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (2)
454
Debug.Assert((keyData & Keys.
Control
) != Keys.
Control
, "the DataGridRelationshipRow only handles TAB and TAB-SHIFT");
winforms\Managed\System\WinForms\DataGridTextBox.cs (7)
88
if ((Control.ModifierKeys & Keys.
Control
) == Keys.
Control
&& ((Control.ModifierKeys & Keys.Alt) == 0))
106
if ((key | modifierKeys) == Keys.Enter || (key | modifierKeys) == Keys.Escape || ((key | modifierKeys) == (Keys.Enter | Keys.
Control
))
203
if (IsInEditOrNavigateMode && (Control.ModifierKeys & Keys.
Control
) == Keys.
Control
)
240
if ((ModifierKeys & Keys.
Control
) == Keys.
Control
)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (69)
10257
return GetTabKeyEffective((keyData & Keys.Shift) == Keys.Shift, (keyData & Keys.
Control
) == Keys.
Control
);
10262
if ((keyData & (Keys.
Control
| Keys.Shift | Keys.Alt)) == Keys.
Control
)
10272
if ((keyData & (Keys.
Control
| Keys.Shift | Keys.Alt)) == Keys.
Control
)
10281
if ((keyData & (Keys.
Control
| Keys.Shift | Keys.Alt)) == Keys.Shift &&
12272
bool isControlDown = (nModifier & Keys.
Control
) == Keys.
Control
&& (nModifier & Keys.Alt) == 0;
16904
bool verticalScroll = ((ModifierKeys & Keys.
Control
) == 0);
20447
if ((keyData & (Keys.Shift | Keys.
Control
| Keys.Alt)) == Keys.
Control
&&
20664
keyData &= ~Keys.
Control
;
20729
if ((keyData & Keys.
Control
) == Keys.
Control
)
20958
if ((keyData & Keys.
Control
) == Keys.
Control
)
21176
if ((keyData & Keys.
Control
) == Keys.
Control
)
21454
if ((keyData & Keys.
Control
) == Keys.
Control
)
21566
if ((keyData & Keys.
Control
) == 0)
21610
if ((keyData & Keys.
Control
) == 0)
21678
if ((keyData & Keys.
Control
) == 0)
21715
if ((keyData & Keys.
Control
) == 0)
21793
if ((keyData & Keys.
Control
) == 0)
21853
if ((keyData & Keys.
Control
) == 0)
22020
if ((keyData & Keys.
Control
) == 0)
22064
if ((keyData & Keys.
Control
) == 0)
22132
if ((keyData & Keys.
Control
) == 0)
22173
if ((keyData & Keys.
Control
) == 0)
22251
if ((keyData & Keys.
Control
) == 0)
22286
if (((keyData & (Keys.Shift | Keys.
Control
| Keys.Alt)) == Keys.
Control
||
22287
((keyData & (Keys.Shift | Keys.
Control
| Keys.Alt)) == (Keys.
Control
| Keys.Shift) && (keyData & Keys.KeyCode) == Keys.C)) &&
22533
if ((keyData & Keys.
Control
) == Keys.
Control
)
22629
if ((keyData & Keys.
Control
) == Keys.
Control
)
22727
if ((keyData & Keys.
Control
) == Keys.
Control
)
22853
if ((keyData & Keys.
Control
) == Keys.
Control
)
23772
if ((keyData & Keys.
Control
) == Keys.
Control
)
23867
if ((keyData & Keys.
Control
) == Keys.
Control
)
23965
if ((keyData & Keys.
Control
) == Keys.
Control
)
24094
if ((keyData & Keys.
Control
) == Keys.
Control
)
24466
if ((keyData & (Keys.
Control
| Keys.Shift | Keys.Alt)) == Keys.Shift &&
24552
if ((keyData & Keys.
Control
) == Keys.
Control
)
24598
if ((keyData & Keys.
Control
) == Keys.
Control
)
24763
if ((keyData & Keys.
Control
) == Keys.
Control
)
24948
if ((keyData & Keys.
Control
) == Keys.
Control
)
25127
if ((keyData & Keys.
Control
) == Keys.
Control
)
25362
if ((keyData & Keys.
Control
) == Keys.
Control
)
25458
if ((keyData & (Keys.Alt | Keys.Shift | Keys.
Control
)) == Keys.
Control
&&
29917
if (GetTabKeyEffective((modifierKeys & Keys.Shift) == Keys.Shift, (modifierKeys & Keys.
Control
) == Keys.
Control
))
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (3)
224
if ((keyData & (Keys.
Control
| Keys.Shift | Keys.Alt)) == Keys.Shift && this.Multiline && this.AcceptsReturn)
306
ModifierKeys == Keys.
Control
&& this.Multiline && this.AcceptsReturn)
314
if (m.Msg == NativeMethods.WM_KEYDOWN && ModifierKeys == Keys.
Control
)
winforms\Managed\System\WinForms\Form.cs (1)
5316
if ((keyData & (Keys.Alt | Keys.
Control
)) == Keys.None) {
winforms\Managed\System\WinForms\KeyEvent.cs (2)
80
return (keyData & Keys.
Control
) == Keys.
Control
;
winforms\Managed\System\WinForms\KeysConverter.cs (1)
53
AddKey(SR.GetString(SR.toStringControl), Keys.
Control
);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1552
if ((keyData & (Keys.Alt | Keys.
Control
)) != Keys.Alt) {
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
2119
case Keys.
Control
:
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
544
else if ((ModifierKeys & (Keys.
Control
| Keys.Alt)) != 0) {
winforms\Managed\System\WinForms\PreviewKeyDownEventArgs.cs (2)
54
return (_keyData & Keys.
Control
) == Keys.
Control
;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (4)
818
if ((keyData & Keys.Modifiers) == Keys.
Control
)
836
if ((keyData & Keys.Modifiers) == Keys.
Control
)
855
if ((keyData & Keys.Modifiers) == Keys.
Control
)
859
if ((keyData & Keys.Modifiers) == Keys.
Control
)
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1612
if ((keyData & (Keys.Alt | Keys.
Control
)) == Keys.None) {
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
3743
if (((keyData & Keys.
Control
) != 0) ||
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (11)
2839
if ((ModifierKeys & (Keys.Alt | Keys.
Control
)) != 0) {
3105
if (gridEntry != null && ke.KeyData == (Keys.C | Keys.Alt | Keys.Shift | Keys.
Control
)) {
3968
if (((keyData & Keys.
Control
) != 0) ||
5928
if ((keyData & (Keys.Shift | Keys.
Control
| Keys.Alt)) == 0) {
6738
((keyData & Keys.
Control
) != 0) &&
6747
((keyData & Keys.
Control
) != 0) &&
6758
if (((keyData & Keys.
Control
) != 0) ^ ((keyData & Keys.Shift) == 0)) {
6766
((keyData & Keys.
Control
) == 0) &&
6772
((keyData & Keys.
Control
) == 0) &&
6803
if ((keyData & (Keys.Shift | Keys.
Control
| Keys.Alt)) == 0) {
6821
if ((keyData & Keys.KeyCode) == Keys.Tab && ((keyData & (Keys.
Control
| Keys.Alt)) == 0)) {
winforms\Managed\System\WinForms\RichTextBox.cs (2)
3894
if ((k & Keys.
Control
) == Keys.
Control
) {
winforms\Managed\System\WinForms\SendKeys.cs (1)
476
if (haveKeys[HAVECTRL] == 0 && (vk & (int)Keys.
Control
) != 0) {
winforms\Managed\System\WinForms\Shortcut.cs (98)
36
CtrlA = Keys.
Control
+ Keys.A,
43
CtrlB = Keys.
Control
+ Keys.B,
50
CtrlC = Keys.
Control
+ Keys.C,
57
CtrlD = Keys.
Control
+ Keys.D,
64
CtrlE = Keys.
Control
+ Keys.E,
71
CtrlF = Keys.
Control
+ Keys.F,
78
CtrlG = Keys.
Control
+ Keys.G,
85
CtrlH = Keys.
Control
+ Keys.H,
92
CtrlI = Keys.
Control
+ Keys.I,
99
CtrlJ = Keys.
Control
+ Keys.J,
106
CtrlK = Keys.
Control
+ Keys.K,
113
CtrlL = Keys.
Control
+ Keys.L,
120
CtrlM = Keys.
Control
+ Keys.M,
127
CtrlN = Keys.
Control
+ Keys.N,
134
CtrlO = Keys.
Control
+ Keys.O,
141
CtrlP = Keys.
Control
+ Keys.P,
148
CtrlQ = Keys.
Control
+ Keys.Q,
155
CtrlR = Keys.
Control
+ Keys.R,
162
CtrlS = Keys.
Control
+ Keys.S,
169
CtrlT = Keys.
Control
+ Keys.T,
176
CtrlU = Keys.
Control
+ Keys.U,
183
CtrlV = Keys.
Control
+ Keys.V,
190
CtrlW = Keys.
Control
+ Keys.W,
197
CtrlX = Keys.
Control
+ Keys.X,
204
CtrlY = Keys.
Control
+ Keys.Y,
211
CtrlZ = Keys.
Control
+ Keys.Z,
218
CtrlShiftA = Keys.
Control
+ Keys.Shift + Keys.A,
225
CtrlShiftB = Keys.
Control
+ Keys.Shift + Keys.B,
232
CtrlShiftC = Keys.
Control
+ Keys.Shift + Keys.C,
239
CtrlShiftD = Keys.
Control
+ Keys.Shift + Keys.D,
246
CtrlShiftE = Keys.
Control
+ Keys.Shift + Keys.E,
253
CtrlShiftF = Keys.
Control
+ Keys.Shift + Keys.F,
260
CtrlShiftG = Keys.
Control
+ Keys.Shift + Keys.G,
267
CtrlShiftH = Keys.
Control
+ Keys.Shift + Keys.H,
274
CtrlShiftI = Keys.
Control
+ Keys.Shift + Keys.I,
281
CtrlShiftJ = Keys.
Control
+ Keys.Shift + Keys.J,
288
CtrlShiftK = Keys.
Control
+ Keys.Shift + Keys.K,
295
CtrlShiftL = Keys.
Control
+ Keys.Shift + Keys.L,
302
CtrlShiftM = Keys.
Control
+ Keys.Shift + Keys.M,
309
CtrlShiftN = Keys.
Control
+ Keys.Shift + Keys.N,
316
CtrlShiftO = Keys.
Control
+ Keys.Shift + Keys.O,
323
CtrlShiftP = Keys.
Control
+ Keys.Shift + Keys.P,
330
CtrlShiftQ = Keys.
Control
+ Keys.Shift + Keys.Q,
337
CtrlShiftR = Keys.
Control
+ Keys.Shift + Keys.R,
344
CtrlShiftS = Keys.
Control
+ Keys.Shift + Keys.S,
351
CtrlShiftT = Keys.
Control
+ Keys.Shift + Keys.T,
358
CtrlShiftU = Keys.
Control
+ Keys.Shift + Keys.U,
365
CtrlShiftV = Keys.
Control
+ Keys.Shift + Keys.V,
372
CtrlShiftW = Keys.
Control
+ Keys.Shift + Keys.W,
379
CtrlShiftX = Keys.
Control
+ Keys.Shift + Keys.X,
386
CtrlShiftY = Keys.
Control
+ Keys.Shift + Keys.Y,
393
CtrlShiftZ = Keys.
Control
+ Keys.Shift + Keys.Z,
566
CtrlF1 = Keys.
Control
+ Keys.F1,
573
CtrlF2 = Keys.
Control
+ Keys.F2,
580
CtrlF3 = Keys.
Control
+ Keys.F3,
587
CtrlF4 = Keys.
Control
+ Keys.F4,
594
CtrlF5 = Keys.
Control
+ Keys.F5,
601
CtrlF6 = Keys.
Control
+ Keys.F6,
608
CtrlF7 = Keys.
Control
+ Keys.F7,
615
CtrlF8 = Keys.
Control
+ Keys.F8,
622
CtrlF9 = Keys.
Control
+ Keys.F9,
629
CtrlF10 = Keys.
Control
+ Keys.F10,
636
CtrlF11 = Keys.
Control
+ Keys.F11,
643
CtrlF12 = Keys.
Control
+ Keys.F12,
650
CtrlShiftF1 = Keys.
Control
+ Keys.Shift + Keys.F1,
657
CtrlShiftF2 = Keys.
Control
+ Keys.Shift + Keys.F2,
664
CtrlShiftF3 = Keys.
Control
+ Keys.Shift + Keys.F3,
671
CtrlShiftF4 = Keys.
Control
+ Keys.Shift + Keys.F4,
678
CtrlShiftF5 = Keys.
Control
+ Keys.Shift + Keys.F5,
685
CtrlShiftF6 = Keys.
Control
+ Keys.Shift + Keys.F6,
692
CtrlShiftF7 = Keys.
Control
+ Keys.Shift + Keys.F7,
699
CtrlShiftF8 = Keys.
Control
+ Keys.Shift + Keys.F8,
706
CtrlShiftF9 = Keys.
Control
+ Keys.Shift + Keys.F9,
713
CtrlShiftF10 = Keys.
Control
+ Keys.Shift + Keys.F10,
720
CtrlShiftF11 = Keys.
Control
+ Keys.Shift + Keys.F11,
727
CtrlShiftF12 = Keys.
Control
+ Keys.Shift + Keys.F12,
741
CtrlIns = Keys.
Control
+ Keys.Insert,
762
CtrlDel = Keys.
Control
+ Keys.Delete,
976
Ctrl0 = Keys.
Control
+ Keys.D0,
984
Ctrl1 = Keys.
Control
+ Keys.D1,
992
Ctrl2 = Keys.
Control
+ Keys.D2,
1000
Ctrl3 = Keys.
Control
+ Keys.D3,
1008
Ctrl4 = Keys.
Control
+ Keys.D4,
1016
Ctrl5 = Keys.
Control
+ Keys.D5,
1024
Ctrl6 = Keys.
Control
+ Keys.D6,
1032
Ctrl7 = Keys.
Control
+ Keys.D7,
1040
Ctrl8 = Keys.
Control
+ Keys.D8,
1048
Ctrl9 = Keys.
Control
+ Keys.D9,
1056
CtrlShift0 = Keys.
Control
+ Keys.Shift + Keys.D0,
1064
CtrlShift1 = Keys.
Control
+ Keys.Shift + Keys.D1,
1072
CtrlShift2 = Keys.
Control
+ Keys.Shift + Keys.D2,
1080
CtrlShift3 = Keys.
Control
+ Keys.Shift + Keys.D3,
1088
CtrlShift4 = Keys.
Control
+ Keys.Shift + Keys.D4,
1096
CtrlShift5 = Keys.
Control
+ Keys.Shift + Keys.D5,
1104
CtrlShift6 = Keys.
Control
+ Keys.Shift + Keys.D6,
1112
CtrlShift7 = Keys.
Control
+ Keys.Shift + Keys.D7,
1120
CtrlShift8 = Keys.
Control
+ Keys.Shift + Keys.D8,
1128
CtrlShift9 = Keys.
Control
+ Keys.Shift + Keys.D9,
winforms\Managed\System\WinForms\SplitContainer.cs (1)
2411
if ((keyData & (Keys.Alt | Keys.
Control
)) == Keys.None) {
winforms\Managed\System\WinForms\TabControl.cs (3)
1477
if (ke.KeyCode == Keys.Tab && (ke.KeyData & Keys.
Control
) !=0) {
1481
if (ke.KeyCode == Keys.PageDown && (ke.KeyData & Keys.
Control
) !=0) {
1484
if (ke.KeyCode == Keys.PageUp && (ke.KeyData & Keys.
Control
) !=0) {
winforms\Managed\System\WinForms\TextBox.cs (1)
715
&& this.ShortcutsEnabled && (keyData == (Keys.
Control
| Keys.A))) {
winforms\Managed\System\WinForms\TextBoxBase.cs (4)
196
(int)Shortcut.CtrlE, (int)Shortcut.CtrlY, (int)Keys.
Control
+ (int)Keys.Back,
1525
return Multiline && textBoxFlags[acceptsTab] && ((keyData & Keys.
Control
) == 0);
1603
if (keyCode == Keys.Tab && this.AcceptsTab && (keyData & Keys.
Control
) != 0) {
1605
keyData &= ~Keys.
Control
;
winforms\Managed\System\WinForms\ToolStrip.cs (3)
2894
(keyData & Keys.
Control
) == Keys.
Control
&& (keyData & Keys.KeyCode) == Keys.Tab;
2937
bool hasModifiers = ((keyData & (Keys.Alt | Keys.
Control
)) != Keys.None);
System.Workflow.Activities (1)
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
155
if (e.KeyData == (Keys.
Control
| Keys.Space))
System.Workflow.ComponentModel (2)
AuthoringOM\Design\MessageFilters\WindowManager.cs (2)
66
if (this.currentActiveDesigner != null && ((Control.ModifierKeys & (Keys.
Control
| Keys.Shift)) == 0))
422
if (Control.ModifierKeys == Keys.
Control
)