104 references to new
System.Windows.Forms (1)
System\Windows\Forms\ContextMenuStrip.cs (1)
50ContextMenuStrip contextMenuStrip = new();
System.Windows.Forms.Design (1)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
68ContextMenuStrip addDownMenu = new();
System.Windows.Forms.Tests (100)
ContextMenuStripTests.cs (1)
14using ContextMenuStrip cms = new();
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (2)
289using ContextMenuStrip contextMenu = new(); 323using ContextMenuStrip contextMenu = new();
System\Windows\Forms\ControlTests.Methods.cs (2)
12576using ContextMenuStrip menu = new(); 12648using ContextMenuStrip menu = new();
System\Windows\Forms\ControlTests.Properties.cs (7)
3531yield return new object[] { new ContextMenuStrip() }; 3555ContextMenuStrip oldValue = new(); 3573using ContextMenuStrip menu = new(); 3587using ContextMenuStrip menu1 = new(); 3588using ContextMenuStrip menu2 = new(); 3616using ContextMenuStrip menu1 = new(); 3627using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewCellContextMenuStripNeededEventArgsTests.cs (1)
36yield return new object[] { new ContextMenuStrip() };
System\Windows\Forms\DataGridViewCellTests.cs (24)
109yield return new object[] { new ContextMenuStrip() }; 158using ContextMenuStrip menu1 = new(); 159using ContextMenuStrip menu2 = new(); 192using ContextMenuStrip menu1 = new(); 193using ContextMenuStrip menu2 = new(); 319using ContextMenuStrip menu1 = new(); 330using ContextMenuStrip menu2 = new(); 351using ContextMenuStrip menu = new(); 364using ContextMenuStrip menu1 = new(); 368using ContextMenuStrip menu2 = new(); 3316using ContextMenuStrip menu = new(); 3499using ContextMenuStrip menu = new(); 3536using ContextMenuStrip menu = new(); 4188using ContextMenuStrip cellMenu = new(); 4199yield return new object[] { -2, new ContextMenuStrip() }; 4201yield return new object[] { -1, new ContextMenuStrip() }; 4203yield return new object[] { 0, new ContextMenuStrip() }; 4227using ContextMenuStrip cellMenu = new(); 4239yield return new object[] { new ContextMenuStrip() }; 4281using ContextMenuStrip cellMenu = new(); 4312using ContextMenuStrip menu1 = new(); 4313using ContextMenuStrip menu2 = new(); 4346using ContextMenuStrip menu1 = new(); 4347using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewColumnTests.cs (7)
520yield return new object[] { new ContextMenuStrip() }; 542using ContextMenuStrip oldValue = new(); 581using ContextMenuStrip menu = new(); 595using ContextMenuStrip menu1 = new(); 596using ContextMenuStrip menu2 = new(); 630using ContextMenuStrip menu1 = new(); 641using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewHeaderCellTests.cs (17)
2018using ContextMenuStrip menu = new(); 2104using ContextMenuStrip menu = new(); 2203using ContextMenuStrip cellMenu = new(); 2214yield return new object[] { -2, new ContextMenuStrip() }; 2216yield return new object[] { -1, new ContextMenuStrip() }; 2218yield return new object[] { 0, new ContextMenuStrip() }; 2242using ContextMenuStrip cellMenu = new(); 2254yield return new object[] { -2, new ContextMenuStrip() }; 2256yield return new object[] { -1, new ContextMenuStrip() }; 2258yield return new object[] { 0, new ContextMenuStrip() }; 2260yield return new object[] { 1, new ContextMenuStrip() }; 2302using ContextMenuStrip cellMenu = new(); 2337using ContextMenuStrip cellMenu = new(); 2371using ContextMenuStrip menu1 = new(); 2372using ContextMenuStrip menu2 = new(); 2405using ContextMenuStrip menu1 = new(); 2406using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewRowContextMenuStripNeededEventArgsTests.cs (1)
29yield return new object[] { new ContextMenuStrip() };
System\Windows\Forms\DataGridViewRowTests.cs (22)
66using ContextMenuStrip menu1 = new(); 67using ContextMenuStrip menu2 = new(); 100using ContextMenuStrip menu1 = new(); 101using ContextMenuStrip menu2 = new(); 149yield return new object[] { new ContextMenuStrip() }; 171using ContextMenuStrip oldValue = new(); 230using ContextMenuStrip menu = new(); 244using ContextMenuStrip menu1 = new(); 245using ContextMenuStrip menu2 = new(); 278using ContextMenuStrip menu1 = new(); 289using ContextMenuStrip menu2 = new(); 3923using ContextMenuStrip menu = new(); 3963using ContextMenuStrip menu = new(); 4006using ContextMenuStrip menu = new(); 4172ContextMenuStrip = new ContextMenuStrip() 4258using ContextMenuStrip menu = new(); 4274using ContextMenuStrip menu1 = new(); 4277using ContextMenuStrip menu2 = new(); 4290using ContextMenuStrip menu1 = new(); 4291using ContextMenuStrip menu2 = new(); 4324using ContextMenuStrip menu1 = new(); 4325using ContextMenuStrip menu2 = new();
System\Windows\Forms\NotifyIconTests.cs (3)
141yield return new object[] { new ContextMenuStrip() }; 163using ContextMenuStrip menu = new(); 770using ContextMenuStrip contextMenuStrip = new();
System\Windows\Forms\ToolStripDropDownTests.cs (3)
1048yield return new object[] { new ContextMenuStrip() }; 1082using ContextMenuStrip menu1 = new(); 1093using ContextMenuStrip menu2 = new();
System\Windows\Forms\ToolStripItemCollectionTests.cs (1)
108using ContextMenuStrip contextMenuStrip = new();
System\Windows\Forms\UpDownBaseTests.cs (3)
871yield return new object[] { new ContextMenuStrip() }; 905using ContextMenuStrip menu1 = new(); 916using ContextMenuStrip menu2 = new();
System\Windows\Forms\WebBrowserTests.cs (2)
4545using ContextMenuStrip menu = new(); 4617using ContextMenuStrip menu = new();
TextBoxBaseTests.cs (2)
6999using ContextMenuStrip menu = new(); 7078using ContextMenuStrip menu = new();
ToolStripContainerTests.cs (2)
129using ContextMenuStrip contextMenuStrip = new(); 158_toolStripContainer.ContextMenuStrip = new ContextMenuStrip();
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
1008_contextMenuStrip = new ContextMenuStrip
WinFormsControlsTest (1)
DragDrop.cs (1)
430_catContextMenuStrip = new ContextMenuStrip