236 references to Alt
DesignSurface (1)
MainForm.Designer.cs (1)
252this.ToolStripMenuItemKeyInvokeSmartTag.ShortcutKeys = System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.Shift | System.Windows.Forms.Keys.F10;
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Devices\Keyboard.vb (1)
22Return CType(keys And Keys.Alt, Boolean)
System.Windows.Forms (104)
System\Windows\Forms\Control.cs (3)
2526modifiers |= Keys.Alt; 6222if ((keyData & Keys.Alt) == Keys.Alt)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2020Debug.Assert((ModifierKeys & Keys.Alt) == 0); 2038Debug.Assert((ModifierKeys & Keys.Alt) == 0); 2136Keys keyCode = keyData & (Keys.KeyCode | Keys.Alt);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (18)
10070if ((keyData & Keys.Alt) == Keys.Alt) 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; 11901bool isAltDown = (nModifier & Keys.Alt) == Keys.Alt; 15767if (_dataGridViewOper[OperationTrackKeyboardColResize] && (e.KeyData & Keys.Alt) != Keys.Alt) 16463if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None) 19927if ((keyData & (Keys.Shift | Keys.Control | Keys.Alt)) == Keys.Control && MultiSelect) 21867if (((keyData & (Keys.Shift | Keys.Control | Keys.Alt)) == Keys.Control 21868|| ((keyData & (Keys.Shift | Keys.Control | Keys.Alt)) == (Keys.Control | Keys.Shift) 22014if ((keyData & Keys.Alt) == Keys.Alt && AllowUserToResizeColumns && _ptCurrentCell.X != -1) 24268if ((keyData & (Keys.Control | Keys.Shift | Keys.Alt)) == Keys.Shift && _ptCurrentCell.X != -1) 25298if ((keyData & (Keys.Alt | Keys.Shift | Keys.Control)) == Keys.Control && IsCurrentCellInEditMode)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
204if ((keyData & (Keys.Control | Keys.Shift | Keys.Alt)) == Keys.Shift && Multiline && AcceptsReturn)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (2)
1032if ((keyData & Keys.Alt) == Keys.Alt)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
1408if ((keyData & (Keys.Alt | Keys.Control)) != Keys.Alt)
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
577if ((keyData & Keys.Alt) == Keys.Alt)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
4257if ((keyData & Keys.Alt) == Keys.Alt)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (2)
1338if ((keyData & Keys.Alt) == Keys.Alt)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
3225|| keyData.HasFlag(Keys.Alt))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
2611if ((ModifierKeys & (Keys.Alt | Keys.Control)) != 0) 2913if (e.KeyData == (Keys.C | Keys.Alt | Keys.Shift | Keys.Control)) 3117if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None) 3825((keyData & Keys.Alt) != 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)
187if (((keyData & Keys.Control) != 0) && ((keyData & Keys.Shift) == 0) && ((keyData & Keys.Alt) == 0)) 195if (((keyData & Keys.Control) != 0) && ((keyData & Keys.Shift) == 0) && ((keyData & Keys.Alt) == 0)) 204if (((keyData & Keys.Alt) == 0)) 215if (((keyData & Keys.Control) == 0) && ((keyData & Keys.Shift) != 0) && ((keyData & Keys.Alt) == 0)) 219else if (((keyData & Keys.Control) == 0) && ((keyData & Keys.Shift) == 0) && ((keyData & Keys.Alt) == 0)) 244if ((keyData & (Keys.Shift | Keys.Control | Keys.Alt)) == 0) 266if ((keyData & Keys.KeyCode) == Keys.Tab && ((keyData & (Keys.Control | Keys.Alt)) == 0))
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1179if ((keyData & Keys.Alt) == Keys.Alt)
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
535if (Multiline && (keyData & Keys.Alt) == 0)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1318if ((keyData & Keys.Alt) != Keys.Alt)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2757bool hasModifiers = ((keyData & (Keys.Alt | Keys.Control)) != Keys.None); 2849if (!inMenuMode && ModifierKeys == Keys.Alt)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.cs (2)
52if ((keyData & Keys.Alt) == Keys.Alt)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (2)
131if ((Control.ModifierKeys != Keys.Alt) && 152if ((Control.ModifierKeys != Keys.Alt) &&
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2055if (Control.ModifierKeys == Keys.Alt)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (3)
842if ((keyData & Keys.Alt) == Keys.Alt) 925if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None)
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1809if (_editNode is not null && (keyData & Keys.Alt) == 0)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
477else if ((ModifierKeys & (Keys.Control | Keys.Alt)) != 0)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
733if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 || MouseButtons != MouseButtons.None)
System\Windows\Forms\Form.cs (1)
4693if ((keyData & (Keys.Alt | Keys.Control)) == Keys.None)
System\Windows\Forms\Input\KeyEventArgs.cs (2)
25public virtual bool Alt => (KeyData & Keys.Alt) == Keys.Alt;
System\Windows\Forms\Input\KeysConverter.cs (1)
48AddLocalizedKey(nameof(SR.toStringAlt), Keys.Alt);
System\Windows\Forms\Input\PreviewKeyDownEventArgs.cs (2)
22public bool Alt => (KeyData & Keys.Alt) == Keys.Alt;
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\MDI\MDIControlStrip.cs (1)
70_system.ShortcutKeys = Keys.Alt | Keys.OemMinus;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
1008if ((keyData & (Keys.Alt | Keys.Control)) == Keys.None)
System\Windows\Forms\SendKeys\SendKeys.cs (1)
500if (haveKeys.HaveAlt == 0 && (vk & (int)Keys.Alt) != 0)
System\Windows\Forms\Shortcut.cs (27)
545AltRightArrow = Keys.Alt + Keys.Right, 550AltLeftArrow = Keys.Alt + Keys.Left, 555AltUpArrow = Keys.Alt + Keys.Up, 560AltDownArrow = Keys.Alt + Keys.Down, 565AltBksp = Keys.Alt + Keys.Back, 570AltF1 = Keys.Alt + Keys.F1, 575AltF2 = Keys.Alt + Keys.F2, 580AltF3 = Keys.Alt + Keys.F3, 585AltF4 = Keys.Alt + Keys.F4, 590AltF5 = Keys.Alt + Keys.F5, 595AltF6 = Keys.Alt + Keys.F6, 600AltF7 = Keys.Alt + Keys.F7, 605AltF8 = Keys.Alt + Keys.F8, 610AltF9 = Keys.Alt + Keys.F9, 615AltF10 = Keys.Alt + Keys.F10, 620AltF11 = Keys.Alt + Keys.F11, 625AltF12 = Keys.Alt + Keys.F12, 630Alt0 = Keys.Alt + Keys.D0, 635Alt1 = Keys.Alt + Keys.D1, 640Alt2 = Keys.Alt + Keys.D2, 645Alt3 = Keys.Alt + Keys.D3, 650Alt4 = Keys.Alt + Keys.D4, 655Alt5 = Keys.Alt + Keys.D5, 660Alt6 = Keys.Alt + Keys.D6, 665Alt7 = Keys.Alt + Keys.D7, 670Alt8 = Keys.Alt + Keys.D8, 675Alt9 = Keys.Alt + Keys.D9,
System.Windows.Forms.Design (25)
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (1)
77if ((ModifierKeys & (Keys.Control | Keys.Alt)) != 0)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (4)
312if (keyData is (Keys.Alt | Keys.Down) or (Keys.Alt | Keys.Up) or Keys.F4) 327else if ((keyData & Keys.Alt) == Keys.Alt)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (2)
127if (keyData is (Keys.Alt | Keys.Down) or (Keys.Alt | Keys.Up) or Keys.F4)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
66if ((keyData & Keys.KeyCode) == Keys.Return && Multiline && (keyData & Keys.Alt) == 0) 76if ((keyData & (Keys.Shift | Keys.Alt)) == 0)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
336if ((keyData & Keys.Alt) == 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\DropSourceBehavior.cs (1)
619bool altKeyPressed = Control.ModifierKeys == Keys.Alt;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
464bool altKeyPressed = Control.ModifierKeys == Keys.Alt;
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
304bool altKeyPressed = Control.ModifierKeys == Keys.Alt;
System\Windows\Forms\Design\PbrsForward.cs (1)
136if ((Control.ModifierKeys & (Keys.Control | Keys.Alt)) != 0)
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 || 328_altCheckBox.Checked = (keys & Keys.Alt) != 0; 369valueKeys |= Keys.Alt;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1715if ((keyData & (Keys.Alt | Keys.Control)) == Keys.None)
System.Windows.Forms.Tests (102)
System\Windows\Forms\ControlTests.Methods.cs (29)
4446yield return new object[] { Keys.Alt | Keys.Tab, false }; 4447yield return new object[] { Keys.Alt | Keys.Up, false }; 4448yield return new object[] { Keys.Alt | Keys.Down, false }; 4449yield return new object[] { Keys.Alt | Keys.Left, false }; 4450yield return new object[] { Keys.Alt | Keys.Right, false }; 4451yield return new object[] { Keys.Alt | Keys.Return, false }; 4452yield return new object[] { Keys.Alt | Keys.Escape, false }; 4453yield return new object[] { Keys.Alt | Keys.A, false }; 4454yield return new object[] { Keys.Alt | Keys.C, false }; 4455yield return new object[] { Keys.Alt | Keys.Insert, false }; 4456yield return new object[] { Keys.Alt | Keys.Space, false }; 4457yield return new object[] { Keys.Alt | Keys.Home, false }; 4458yield return new object[] { Keys.Alt | Keys.End, false }; 4459yield return new object[] { Keys.Alt | Keys.Back, false }; 4460yield return new object[] { Keys.Alt | Keys.Next, false }; 4461yield return new object[] { Keys.Alt | Keys.Prior, false }; 4462yield return new object[] { Keys.Alt | Keys.Delete, false }; 4463yield return new object[] { Keys.Alt | Keys.D0, false }; 4464yield return new object[] { Keys.Alt | Keys.NumPad0, false }; 4465yield return new object[] { Keys.Alt | Keys.F1, false }; 4466yield return new object[] { Keys.Alt | Keys.F2, false }; 4467yield return new object[] { Keys.Alt | Keys.F3, false }; 4468yield return new object[] { Keys.Alt | Keys.F4, false }; 4469yield return new object[] { Keys.Alt | Keys.F10, false }; 4470yield return new object[] { Keys.Alt | Keys.RButton, false }; 4471yield return new object[] { Keys.Alt | Keys.PageUp, false }; 4472yield return new object[] { Keys.Alt | Keys.PageDown, false }; 4473yield return new object[] { Keys.Alt | Keys.Menu, false }; 4474yield return new object[] { Keys.Alt | Keys.None, false };
System\Windows\Forms\KeyEventArgsTests.cs (6)
12[InlineData(Keys.Alt | Keys.A)] 15[InlineData(Keys.Alt)] 17[InlineData(Keys.Control | Keys.Alt | Keys.Shift | Keys.A)] 21[InlineData(Keys.Control | Keys.Alt | Keys.Shift | (Keys)(0x5D))] 27Assert.Equal((keyData & Keys.Alt) == Keys.Alt, e.Alt);
System\Windows\Forms\KeysConverterTests.cs (14)
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)] 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")] 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\ListControlTests.cs (2)
2091[InlineData(Keys.Alt, false)] 2092[InlineData(Keys.Alt | Keys.PageUp, false)]
System\Windows\Forms\PreviewKeyDownEventArgsTests.cs (6)
12[InlineData(Keys.Alt | Keys.A)] 15[InlineData(Keys.Alt)] 17[InlineData(Keys.Control | Keys.Alt | Keys.Shift | Keys.A)] 21[InlineData(Keys.Control | Keys.Alt | Keys.Shift | (Keys)(0x5D))] 27Assert.Equal((keyData & Keys.Alt) == Keys.Alt, e.Alt);
System\Windows\Forms\TabControlTests.cs (27)
4042yield return new object[] { Keys.Alt | Keys.Tab, false }; 4043yield return new object[] { Keys.Alt | Keys.Up, false }; 4044yield return new object[] { Keys.Alt | Keys.Down, false }; 4045yield return new object[] { Keys.Alt | Keys.Left, false }; 4046yield return new object[] { Keys.Alt | Keys.Right, false }; 4047yield return new object[] { Keys.Alt | Keys.Return, false }; 4048yield return new object[] { Keys.Alt | Keys.Escape, false }; 4049yield return new object[] { Keys.Alt | Keys.A, false }; 4050yield return new object[] { Keys.Alt | Keys.C, false }; 4051yield return new object[] { Keys.Alt | Keys.Insert, false }; 4052yield return new object[] { Keys.Alt | Keys.Space, false }; 4053yield return new object[] { Keys.Alt | Keys.Home, false }; 4054yield return new object[] { Keys.Alt | Keys.End, false }; 4056yield return new object[] { Keys.Alt | Keys.Back, false }; 4057yield return new object[] { Keys.Alt | Keys.Next, false }; 4058yield return new object[] { Keys.Alt | Keys.Prior, false }; 4059yield return new object[] { Keys.Alt | Keys.Delete, false }; 4060yield return new object[] { Keys.Alt | Keys.D0, false }; 4061yield return new object[] { Keys.Alt | Keys.NumPad0, false }; 4062yield return new object[] { Keys.Alt | Keys.F1, false }; 4063yield return new object[] { Keys.Alt | Keys.F2, false }; 4064yield return new object[] { Keys.Alt | Keys.F3, false }; 4065yield return new object[] { Keys.Alt | Keys.F4, false }; 4066yield return new object[] { Keys.Alt | Keys.RButton, false }; 4067yield return new object[] { Keys.Alt | Keys.PageUp, false }; 4068yield return new object[] { Keys.Alt | Keys.PageDown, false }; 4069yield return new object[] { Keys.Alt | Keys.None, false };
System\Windows\Forms\ToolStripMenuItemTests.cs (5)
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)] 140[InlineData(Keys.Control | Keys.Alt)] 141[InlineData(Keys.Control | Keys.Alt | Keys.Shift)]
TextBoxBaseTests.cs (11)
5187yield return new object[] { multiline, acceptsTab, readOnly, Keys.Tab | Keys.Alt, false }; 5189yield return new object[] { multiline, acceptsTab, readOnly, Keys.Escape | Keys.Alt, false }; 5190yield return new object[] { multiline, acceptsTab, readOnly, Keys.Back | Keys.Alt, false }; 5192yield return new object[] { multiline, acceptsTab, readOnly, Keys.PageUp | Keys.Alt, false }; 5194yield return new object[] { multiline, acceptsTab, readOnly, Keys.PageDown | Keys.Alt, false }; 5196yield return new object[] { multiline, acceptsTab, readOnly, Keys.Home | Keys.Alt, false }; 5198yield return new object[] { multiline, acceptsTab, readOnly, Keys.End | Keys.Alt, false }; 5221[InlineData(false, true, true, Keys.Down | Keys.Alt, false)] 5222[InlineData(false, true, false, Keys.Down | Keys.Alt, false)] 5252[InlineData(false, true, true, Keys.Down | Keys.Alt, false)] 5253[InlineData(false, true, false, Keys.Down | Keys.Alt, false)]
TrackBarTests.cs (2)
2309[InlineData(Keys.Alt, false)] 2310[InlineData(Keys.Alt | Keys.PageUp, false)]
WindowsFormsIntegration (3)
System\Windows\Integration\Convert.cs (2)
196if ((keyData & SWF.Keys.Alt) == SWF.Keys.Alt)
System\Windows\Integration\WindowsFormsHost.cs (1)
931if ((keyData & (Keys.Alt | Keys.Control)) == Keys.None)