2 overrides of ContextMenuStrip
System.Windows.Forms (2)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
205public override ContextMenuStrip? ContextMenuStrip
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
154public override ContextMenuStrip? ContextMenuStrip
39 writes to ContextMenuStrip
Accessibility_Core_App (2)
Menu_Toolbars_controls.Designer.cs (1)
108menuStrip1.ContextMenuStrip = contextMenuStrip1;
ToolStripContainer.Designer.cs (1)
119this.toolStrip1.ContextMenuStrip = this.contextMenuStrip1;
System.Windows.Forms (6)
System\Windows\Forms\Control.cs (1)
1596private void DetachContextMenuStrip(object? sender, EventArgs e) => ContextMenuStrip = null;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
200set => base.ContextMenuStrip = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
182set => base.ContextMenuStrip = value;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
210base.ContextMenuStrip = value; 211_upDownEdit.ContextMenuStrip = value;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
157set => base.ContextMenuStrip = value;
System.Windows.Forms.Design (1)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
69_addButton.ContextMenuStrip = addDownMenu;
System.Windows.Forms.Tests (28)
System\Windows\Forms\ControlTests.Methods.cs (2)
12579ContextMenuStrip = menu, 12651ContextMenuStrip = menu,
System\Windows\Forms\ControlTests.Properties.cs (13)
3540ContextMenuStrip = value 3546control.ContextMenuStrip = value; 3558ContextMenuStrip = oldValue 3560control.ContextMenuStrip = value; 3565control.ContextMenuStrip = value; 3576ContextMenuStrip = menu 3591ContextMenuStrip = menu1 3595control.ContextMenuStrip = menu2; 3617control.ContextMenuStrip = menu1; 3622control.ContextMenuStrip = menu1; 3628control.ContextMenuStrip = menu2; 3633control.ContextMenuStrip = null; 3639control.ContextMenuStrip = menu1;
System\Windows\Forms\DataGridViewCellTests.cs (4)
146ContextMenuStrip = menu 4253ContextMenuStrip = menu 4275ContextMenuStrip = menu 4299ContextMenuStrip = menu
System\Windows\Forms\DataGridViewHeaderCellTests.cs (5)
2274ContextMenuStrip = menu 2296ContextMenuStrip = menu 2315ContextMenuStrip = menu 2332ContextMenuStrip = menu 2358ContextMenuStrip = menu
System\Windows\Forms\WebBrowserTests.cs (2)
4548ContextMenuStrip = menu, 4620ContextMenuStrip = menu,
TextBoxBaseTests.cs (2)
7002ContextMenuStrip = menu, 7081ContextMenuStrip = menu,
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
1039ContextMenuStrip = _contextMenuStrip;
WinFormsControlsTest (1)
DragDrop.cs (1)
459ContextMenuStrip = _catContextMenuStrip;
90 references to ContextMenuStrip
System.Windows.Forms (21)
System\Windows\Forms\Control.cs (1)
4699if (ContextMenuStrip is ContextMenuStrip menu)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1693if (ContextMenuStrip is not null) 1729if (ContextMenuStrip is not null)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
29981contextMenuStrip = ContextMenuStrip; 30010: ContextMenuStrip;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1764return DataGridView.ContextMenuStrip;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
272return contextMenuStrip ?? DataGridView?.ContextMenuStrip;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
218return DataGridView.ContextMenuStrip;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
302return contextMenuStrip ?? DataGridView?.ContextMenuStrip;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
2032if (ContextMenuStrip is null) 2054ContextMenuStrip.ShowInternal(this, client, keyboardActivated);
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
199get => base.ContextMenuStrip;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
181get => base.ContextMenuStrip;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (4)
776if (activeControlInChain.ContextMenuStrip is not null 777&& activeControlInChain.ContextMenuStrip.Shortcuts.TryGetValue(shortcut, out ToolStripMenuItem? item) 801if ((activeControl is not null && toolStrip == activeControl.ContextMenuStrip) 822if (topLevelContextMenu != activeControl!.ContextMenuStrip)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
207get => base.ContextMenuStrip;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
90if (ContextMenuStrip is not null)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1343ContextMenuStrip? contextMenuStrip = ContextMenuStrip;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
156get => base.ContextMenuStrip;
System.Windows.Forms.Design (4)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (4)
176if (ContextMenuStrip is not { Visible: true }) 263if (ContextMenuStrip is not null) 265ContextMenuStrip.Closed += ContextMenuStrip_Closed; 266ContextMenuStrip.Show(this, 0, Height);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
52Assert.Null(control.ContextMenuStrip);
System.Windows.Forms.Tests (63)
System\Windows\Forms\AxHostTests.cs (2)
54Assert.Null(control.ContextMenuStrip); 148Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ButtonBaseTests.cs (1)
45Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ButtonTests.cs (1)
47Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\CheckBoxTests.cs (1)
49Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ComboBoxTests.cs (1)
50Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ContainerControlTests.cs (1)
52Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ControlTests.cs (5)
40Assert.Null(control.ContextMenuStrip); 129Assert.Null(control.ContextMenuStrip); 225Assert.Null(control.ContextMenuStrip); 321Assert.Null(control.ContextMenuStrip); 417Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ControlTests.Properties.cs (14)
3542Assert.Same(value, control.ContextMenuStrip); 3547Assert.Same(value, control.ContextMenuStrip); 3561Assert.Same(value, control.ContextMenuStrip); 3566Assert.Same(value, control.ContextMenuStrip); 3578Assert.Same(menu, control.ContextMenuStrip); 3581Assert.Null(control.ContextMenuStrip); 3593Assert.Same(menu1, control.ContextMenuStrip); 3596Assert.Same(menu2, control.ContextMenuStrip); 3599Assert.Same(menu2, control.ContextMenuStrip); 3618Assert.Same(menu1, control.ContextMenuStrip); 3623Assert.Same(menu1, control.ContextMenuStrip); 3629Assert.Same(menu2, control.ContextMenuStrip); 3634Assert.Null(control.ContextMenuStrip); 3640Assert.Same(menu1, control.ContextMenuStrip);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
51Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\DateTimePickerTests.cs (1)
54Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
60Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
49Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
47Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\FormTests.cs (1)
59Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\GroupBoxTests.cs (1)
43Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\HScrollBarTests.cs (1)
47Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\LabelTests.cs (1)
43Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ListBoxTests.cs (1)
45Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ListControlTests.cs (1)
44Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ListViewTests.cs (1)
58Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\MdiClientTests.cs (1)
40Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\MenuStripTests.cs (1)
47Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\MonthCalendarTests.cs (1)
56Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\PanelTests.cs (1)
47Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\PictureBoxTests.cs (1)
46Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ProgressBarTests.cs (1)
42Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\PropertyGridTests.cs (1)
72Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\RadioButtonTests.cs (1)
48Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\RichTextBoxTests.cs (1)
57Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ScrollableControlTests.cs (1)
46Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ScrollBarTests.cs (1)
41Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\SplitterPanelTests.cs (1)
51Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\SplitterTests.cs (1)
42Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\StatusStripTests.cs (1)
47Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\TabControlTests.cs (1)
44Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
52Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
49Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ToolStripPanelTests.cs (1)
48Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\ToolStripTests.cs (1)
51Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\TreeViewTests.cs (1)
44Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\UserControlTests.cs (1)
52Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\VScrollBarTests.cs (1)
46Assert.Null(control.ContextMenuStrip);
System\Windows\Forms\WebBrowserTests.cs (1)
41Assert.Null(control.ContextMenuStrip);
TextBoxTests.cs (1)
50Assert.Null(control.ContextMenuStrip);
TrackBarTests.cs (1)
43Assert.Null(control.ContextMenuStrip);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
983OnPropertyChanged("ContextMenuStrip", this.ContextMenuStrip);