113 references to Alt
System.Windows.Forms (113)
winforms\Managed\System\WinForms\ComboBox.cs (3)
2224
Debug.Assert((ModifierKeys & Keys.
Alt
) == 0);
2237
Debug.Assert((ModifierKeys & Keys.
Alt
) == 0);
2310
Keys keyCode = keyData & (Keys.KeyCode | Keys.
Alt
);
winforms\Managed\System\WinForms\ContainerControl.cs (1)
1188
if ((keyData & (Keys.
Alt
| Keys.Control)) == Keys.None) {
winforms\Managed\System\WinForms\Control.cs (3)
3345
if (UnsafeNativeMethods.GetKeyState((int)Keys.Menu) < 0) modifiers |= Keys.
Alt
;
7644
if ((keyData & Keys.
Alt
) == Keys.
Alt
) return false;
winforms\Managed\System\WinForms\DataGrid.cs (6)
4022
bool isControlDown = (nModifier & Keys.Control) == Keys.Control && (nModifier & Keys.
Alt
) == 0;
4263
&& !(((Control.ModifierKeys & Keys.Control) == Keys.Control) && (Control.ModifierKeys & Keys.
Alt
) == 0)){
7503
if ((keyData & Keys.Control) != 0 && (keyData & Keys.
Alt
) == 0)
7971
if ((biDiKe.Modifiers & Keys.Modifiers) == Keys.
Alt
)
8273
if ((keyData & Keys.
Alt
) == Keys.
Alt
)
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (2)
455
Debug.Assert((keyData & Keys.
Alt
) != Keys.
Alt
, "the DataGridRelationshipRow only handles TAB and TAB-SHIFT");
winforms\Managed\System\WinForms\DataGridTextBox.cs (1)
88
if ((Control.ModifierKeys & Keys.Control) == Keys.Control && ((Control.ModifierKeys & Keys.
Alt
) == 0))
winforms\Managed\System\WinForms\DataGridViewMethods.cs (18)
10244
if ((keyData & Keys.
Alt
) == Keys.
Alt
)
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;
12274
bool isAltDown = (nModifier & Keys.
Alt
) == Keys.
Alt
;
16226
if (this.dataGridViewOper[DATAGRIDVIEWOPER_trackKeyboardColResize] && (e.KeyData & Keys.
Alt
) != Keys.
Alt
&& AccessibilityImprovements.Level2)
16899
if ((ModifierKeys & (Keys.Shift | Keys.
Alt
)) != 0 || MouseButtons != MouseButtons.None)
20447
if ((keyData & (Keys.Shift | Keys.Control | Keys.
Alt
)) == Keys.Control &&
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)) &&
22454
if (AccessibilityImprovements.Level2 && (keyData & Keys.
Alt
) == Keys.
Alt
&& this.AllowUserToResizeColumns && this.ptCurrentCell.X != -1)
24466
if ((keyData & (Keys.Control | Keys.Shift | Keys.
Alt
)) == Keys.Shift &&
25458
if ((keyData & (Keys.
Alt
| Keys.Shift | Keys.Control)) == Keys.Control &&
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (1)
224
if ((keyData & (Keys.Control | Keys.Shift | Keys.
Alt
)) == Keys.Shift && this.Multiline && this.AcceptsReturn)
winforms\Managed\System\WinForms\DateTimePicker.cs (2)
1203
if ((keyData & Keys.
Alt
) == Keys.
Alt
) return false;
winforms\Managed\System\WinForms\Form.cs (1)
5316
if ((keyData & (Keys.
Alt
| Keys.Control)) == Keys.None) {
winforms\Managed\System\WinForms\KeyEvent.cs (2)
68
return (keyData & Keys.
Alt
) == Keys.
Alt
;
winforms\Managed\System\WinForms\KeysConverter.cs (1)
56
AddKey(SR.GetString(SR.toStringAlt), Keys.
Alt
);
winforms\Managed\System\WinForms\LinkLabel.cs (2)
1552
if ((keyData & (Keys.
Alt
| Keys.Control)) != Keys.
Alt
) {
winforms\Managed\System\WinForms\ListControl.cs (2)
610
if ((keyData & Keys.
Alt
) == Keys.
Alt
) return false;
winforms\Managed\System\WinForms\ListView.cs (2)
4001
if ((keyData & Keys.
Alt
) == Keys.
Alt
) return false;
winforms\Managed\System\WinForms\MDIControlStrip.cs (1)
78
system.ShortcutKeys = Keys.
Alt
| Keys.OemMinus;
winforms\Managed\System\WinForms\MonthCalendar.cs (2)
1611
if ((keyData & Keys.
Alt
) == Keys.
Alt
) return false;
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
544
else if ((ModifierKeys & (Keys.Control | Keys.
Alt
)) != 0) {
winforms\Managed\System\WinForms\PreviewKeyDownEventArgs.cs (2)
42
return (_keyData & Keys.
Alt
) == Keys.
Alt
;
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1612
if ((keyData & (Keys.
Alt
| Keys.Control)) == Keys.None) {
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
3744
((keyData & Keys.
Alt
) != 0)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (12)
2839
if ((ModifierKeys & (Keys.
Alt
| Keys.Control)) != 0) {
3105
if (gridEntry != null && ke.KeyData == (Keys.C | Keys.
Alt
| Keys.Shift | Keys.Control)) {
3317
if ((ModifierKeys & (Keys.Shift | Keys.
Alt
)) != 0 || MouseButtons != MouseButtons.None) {
3969
((keyData & Keys.
Alt
) != 0)) {
5928
if ((keyData & (Keys.Shift | Keys.Control | Keys.
Alt
)) == 0) {
6740
((keyData & Keys.
Alt
) == 0)) {
6749
((keyData & Keys.
Alt
) == 0)) {
6757
if (((keyData & Keys.
Alt
) == 0)) {
6768
((keyData & Keys.
Alt
) == 0)) {
6774
((keyData & Keys.
Alt
) == 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\SendKeys.cs (1)
482
if (haveKeys[HAVEALT] == 0 && (vk & (int)Keys.
Alt
) != 0) {
winforms\Managed\System\WinForms\Shortcut.cs (27)
776
AltRightArrow = Keys.
Alt
+ Keys.Right,
783
AltLeftArrow = Keys.
Alt
+ Keys.Left,
790
AltUpArrow = Keys.
Alt
+ Keys.Up,
797
AltDownArrow = Keys.
Alt
+ Keys.Down,
804
AltBksp = Keys.
Alt
+ Keys.Back,
811
AltF1 = Keys.
Alt
+ Keys.F1,
818
AltF2 = Keys.
Alt
+ Keys.F2,
825
AltF3 = Keys.
Alt
+ Keys.F3,
832
AltF4 = Keys.
Alt
+ Keys.F4,
839
AltF5 = Keys.
Alt
+ Keys.F5,
846
AltF6 = Keys.
Alt
+ Keys.F6,
853
AltF7 = Keys.
Alt
+ Keys.F7,
860
AltF8 = Keys.
Alt
+ Keys.F8,
867
AltF9 = Keys.
Alt
+ Keys.F9,
874
AltF10 = Keys.
Alt
+ Keys.F10,
881
AltF11 = Keys.
Alt
+ Keys.F11,
888
AltF12 = Keys.
Alt
+ Keys.F12,
896
Alt0 = Keys.
Alt
+ Keys.D0,
904
Alt1 = Keys.
Alt
+ Keys.D1,
912
Alt2 = Keys.
Alt
+ Keys.D2,
920
Alt3 = Keys.
Alt
+ Keys.D3,
928
Alt4 = Keys.
Alt
+ Keys.D4,
936
Alt5 = Keys.
Alt
+ Keys.D5,
944
Alt6 = Keys.
Alt
+ Keys.D6,
952
Alt7 = Keys.
Alt
+ Keys.D7,
960
Alt8 = Keys.
Alt
+ Keys.D8,
968
Alt9 = Keys.
Alt
+ Keys.D9,
winforms\Managed\System\WinForms\SplitContainer.cs (1)
2411
if ((keyData & (Keys.
Alt
| Keys.Control)) == Keys.None) {
winforms\Managed\System\WinForms\TabControl.cs (2)
1320
if ((keyData & Keys.
Alt
) == Keys.
Alt
) return false;
winforms\Managed\System\WinForms\TextBox.cs (1)
586
if (Multiline && (keyData & Keys.
Alt
) == 0) {
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
1520
if ((keyData & Keys.
Alt
) != Keys.
Alt
) {
winforms\Managed\System\WinForms\ToolStrip.cs (2)
2937
bool hasModifiers = ((keyData & (Keys.
Alt
| Keys.Control)) != Keys.None);
3021
if (!inMenuMode && Control.ModifierKeys == Keys.
Alt
) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (2)
750
if ((keyData & Keys.
Alt
) == Keys.
Alt
) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
126
if ((Control.ModifierKeys != Keys.
Alt
) &&
142
if ((Control.ModifierKeys != Keys.
Alt
) &&
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
2492
if (Control.ModifierKeys == Keys.
Alt
) {
winforms\Managed\System\WinForms\TrackBar.cs (3)
906
if ((keyData & Keys.
Alt
) == Keys.
Alt
) return false;
980
if ((ModifierKeys & (Keys.Shift | Keys.
Alt
)) != 0 || MouseButtons != MouseButtons.None) {
winforms\Managed\System\WinForms\TreeView.cs (1)
1932
if (editNode != null && (keyData & Keys.
Alt
) == 0) {
winforms\Managed\System\WinForms\UpDownBase.cs (1)
996
if ((ModifierKeys & (Keys.Shift | Keys.
Alt
)) != 0 || MouseButtons != MouseButtons.None) {