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