2074 references to Control
InteractiveHost32 (1)
src\Interactive\HostProcess\InteractiveHostEntryPoint.cs (1)
42control = new Control();
InteractiveHost64 (1)
src\Interactive\HostProcess\InteractiveHostEntryPoint.cs (1)
42control = new Control();
Microsoft.VisualBasic.Forms.Tests (4)
System\Windows\Forms\CompilerServices.TestVbHost.vb (1)
16Private ReadOnly _testControl As New Control()
System\Windows\Forms\ControlInvokeTests.vb (3)
22Using _control As New Control 53Using _control As New Control 83Using _control As New Control
System.Windows.Forms (19)
System\Windows\Forms\ActiveX\AxHost.cs (1)
180: base()
System\Windows\Forms\Control.cs (1)
399public Control(Control? parent, string? text) : this()
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
110public DateTimePicker() : base()
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
28public GroupBox() : base()
System\Windows\Forms\Controls\Labels\Label.cs (1)
63public Label() : base()
System\Windows\Forms\Controls\ListView\ListView.cs (1)
214public ListView() : base()
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
133public MonthCalendar() : base()
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
38public ProgressBar() : base()
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
117: base()
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
47public Splitter() : base()
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
80: base()
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
89internal TextBoxBase() : base()
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
52public TrackBar() : base()
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
155: base()
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
33internal UpDownButtons(UpDownBase parent) : base()
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
70internal WebBrowserBase(string clsidString) : base()
System\Windows\Forms\MDI\MDIClient.cs (1)
29public MdiClient() : base()
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
58public ScrollableControl() : base()
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
32public ScrollBar() : base()
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerActionUI.cs (1)
105_marshalingControl = new Control();
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
183private Control DropSource => _dropSource ??= new Control();
System\Windows\Forms\Design\SelectionUIService.cs (1)
60public SelectionUIService(IDesignerHost host) : base()
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
41_dropSource ??= new Control();
System.Windows.Forms.Design.Tests (75)
ControlDesignerTests.cs (4)
199using Control childControl = new(); 216using Control childControl = new(); 338{ "Parent", new Control() } 358{ nameof(mockParentDesigner.Object.Component), new Control() }
SplitContainerDesignerTests.cs (1)
45using Control control = new();
System\ComponentModel\Design\ByteViewerTests.cs (14)
312yield return new object[] { new LayoutEventArgs(new Control(), null) }; 313yield return new object[] { new LayoutEventArgs(new Control(), string.Empty) }; 314yield return new object[] { new LayoutEventArgs(new Control(), "ChildIndex") }; 315yield return new object[] { new LayoutEventArgs(new Control(), "Visible") }; 316yield return new object[] { new LayoutEventArgs(new Control(), "Items") }; 317yield return new object[] { new LayoutEventArgs(new Control(), "Rows") }; 318yield return new object[] { new LayoutEventArgs(new Control(), "Columns") }; 319yield return new object[] { new LayoutEventArgs(new Control(), "RowStyles") }; 320yield return new object[] { new LayoutEventArgs(new Control(), "ColumnStyles") }; 321yield return new object[] { new LayoutEventArgs(new Control(), "TableIndex") }; 322yield return new object[] { new LayoutEventArgs(new Control(), "GrowStyle") }; 323yield return new object[] { new LayoutEventArgs(new Control(), "CellBorderStyle") }; 324yield return new object[] { new LayoutEventArgs(new Control(), "LayoutSettings") }; 325yield return new object[] { new LayoutEventArgs(new Control(), "NoSuchProperty") };
System\Windows\Forms\Design\ControlCommandSetTests.cs (4)
30_baseControl = new(); 75using Control component = new(); 94using Control childComponent = new(); 95using Control parentComponent = new();
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (13)
16_control = new(); 60using Control control = new(); 68using Control control1 = new(); 69using Control control2 = new(); 78using Control control = new(); 105using Control control = new(); 113using Control control = new(); 114using Control anotherControl = new(); 124using Control control = new(); 133using Control control = new(); 142using Control control = new(); 150using Control control = new(); 159using Control control = new();
System\Windows\Forms\Design\ControlDesignerAccessibleObjectTests.cs (2)
90Control control = new() { Name = "TestControl" }; 101Control control = new();
System\Windows\Forms\Design\DesignerFrameTests.cs (2)
58Control control = new(); 119Control control = new();
System\Windows\Forms\Design\DesignerToolStripControlHostTests.cs (1)
11using Control control = new();
System\Windows\Forms\Design\EventHandlerServiceTests.cs (1)
16using Control focusWnd = new();
System\Windows\Forms\Design\FlowLayoutPanelDesignerTests.cs (5)
43using Control childControl = new() { Site = new Mock<ISite>().Object }; 55using Control childControl = new() { Site = new Mock<ISite>().Object }; 131using Control control = new() 191using Control control1 = new(); 192using Control control2 = new();
System\Windows\Forms\Design\InheritanceUITests.cs (3)
25_control = new Control { Parent = _form }; 26_childControl = new Control { Parent = _control }; 27_sitedChildControl = new Control { Parent = _control, Site = new Mock<ISite>().Object };
System\Windows\Forms\Design\InheritedPropertyDescriptorTests.cs (4)
16using Control control = new(); 30using Control control = new(); 48using Control control = new(); 62using Control control = new();
System\Windows\Forms\Design\ParentControlDesignerTests.cs (1)
21_control = new();
System\Windows\Forms\Design\SelectionUIHandlerTests.cs (1)
23_control = new();
System\Windows\Forms\Design\StatusCommandUITests.cs (3)
45using Control control = new() { Bounds = new(10, 20, 30, 40) }; 81using Control control = new() { Bounds = new(10, 20, 30, 40) }; 106using Control control = new() { Bounds = new(10, 20, 30, 40) };
System\Windows\Forms\Design\TabOrderTests.cs (1)
163accessor._ctlHover = new Control();
System\Windows\Forms\Design\ToolStripAdornerWindowServiceTests.cs (3)
32_control = new(); 116Control parentControl = new() { Left = 10, Top = 20 }; 117Control control = new() { Parent = parentControl, Left = 30, Top = 40 };
System\Windows\Forms\Design\ToolStripContainerActionListTests.cs (8)
44using Control rootComponent = new(); 53using Control rootComponent = new(); 54using Control childControl1 = new(); 55using Control childControl2 = new(); 75using Control rootComponent = new(); 76using Control inheritedControl = new(); 192using Control rootComponent = new(); 193using Control childControl = new();
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (1)
66using Control control = new();
System\Windows\Forms\Design\ToolStripEditorManagerTests.cs (1)
45_editorControl = new();
SystemDesignMetadataReader.cs (1)
19IDesigner designer = designSurface.CreateDesigner(new Control(), true);
TestControlDesigner.Mocks.cs (1)
12internal readonly Control _control = new();
System.Windows.Forms.Interop.Tests (1)
AccessibleObjectTests.cs (1)
490using Control control = new();
System.Windows.Forms.Tests (1967)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (8)
546using Control first = new(); 547using Control second = new(); 574using Control control = new(); 633using Control control = new(); 699using Control control = new(); 718using Control control = new(); 737using Control control = new(); 2163using Control control = new();
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (54)
63using Control ownerControl = new(); 87using Control ownerControl = new(); 128using Control ownerControl = new(); 147using Control ownerControl = new(); 166using Control ownerControl = new(); 181using Control ownerControl = new(); 200using Control ownerControl = new() 212using Control ownerControl = new() 231using Control ownerControl = new() 258using Control control = new(); 266using Control ownerControl = new(); 285using Control ownerControl = new(); 355using Control parent = new(); 436using Control previousControl = new() 461using Control previousControl = new() 486using Control previousControl = new() 555using Control parent = new(); 676using Control previousControl = new() 702using Control previousControl = new() 728using Control previousControl = new() 747using Control ownerControl = new(); 836using Control ownerControl = new() 848using Control ownerControl = new(); 866using Control ownerControl = new(); 882using Control ownerControl = new(); 890using Control ownerControl = new(); 898using Control child = new(); 899using Control ownerControl = new(); 911using Control ownerControl = new(); 919using Control ownerControl = new(); 948using Control ownerControl = new(); 993using Control ownerControl = new(); 1004using Control ownerControl = new(); 1013using Control ownerControl = new(); 1022using Control ownerControl = new(); 1033using Control ownerControl = new(); 1044using Control ownerControl = new(); 1060using Control ownerControl = new(); 1070using Control ownerControl = new(); 1089using Control ownerControl = new(); 1107using Control ownerControl = new(); 1115using Control ownerControl = new(); 1130using Control ownerControl = new(); 1149using Control ownerControl = new(); 1166using Control ownerControl = new(); 1177using Control ownerControl = new(); 1186using Control ownerControl = new(); 1197using Control child = new(); 1198using Control ownerControl = new(); 1217using Control ownerControl = new(); 1226using Control control = new(); 1415using Control control = new(); 1619using Control ownerControl = new() { Name = "test name" }; 1637using Control control = new();
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (11)
33using Control control = new(); 45using Control parentControl = new(); 46using Control control = new(); 65using Control control = new(); 80using Control control = new(); 119using Control control = new(); 146using Control control = new(); 186using Control control = new(); 213using Control control = new(); 228using Control control = new(); 261using Control control = new();
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (6)
92using Control control = new(); 106using Control control = new(); 123using Control control = new(); 145using Control control = new(); 163using Control control = new(); 182using Control control = new();
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (2)
29_control1 = new Control(); 33_control2 = new Control();
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (5)
22using Control control = new(); 34using Control control = new(); 46using Control control = new(); 59using Control control = new(); 72using Control control = new();
System\Windows\Forms\Application.ParkingWindowTests.cs (5)
77using Control control = new(); 112using Control control = new(); 145using Control control = new(); 178using Control control = new(); 189using Control systemControl = new();
System\Windows\Forms\ApplicationTests.cs (1)
249using Control control = new();
System\Windows\Forms\AxHostTests.cs (11)
351Control parent = new() 390Control parent = new(); 468Control child1 = new(); 469Control child2 = new(); 492Control child1 = new() 496Control child2 = new() 1306using Control parent = new(); 1323using Control parent = new(); 1352using Control parent = new(); 1823using Control parent = new(); 2120using Control parent = new();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
271{ new Control(), new string[] { "DataContext: Object", "Tag: Object" } },
System\Windows\Forms\BindingContextTests.cs (1)
992Control control = new();
System\Windows\Forms\ButtonBaseTests.cs (22)
1139using Control parent = new(); 1310using Control parent = new(); 1550using Control parent = new(); 1717using Control parent = new(); 1887using Control parent = new(); 1991using Control parent = new(); 2803yield return new object[] { enabled, visible, image, new Control() }; 2867using Control oldParent = new(); 2891using Control parent = new(); 2992using Control parent = new(); 3077using Control parent = new(); 3172using Control parent = new(); 3317using Control parent = new(); 3433using Control parent = new(); 3551using Control parent = new(); 3660using Control parent = new(); 3761using Control parent = new(); 3858using Control parent = new(); 3971using Control parent = new(); 4087using Control parent = new(); 7190using Control parent = new(); 7292using Control parent = new();
System\Windows\Forms\ButtonTests.cs (10)
299using Control parent = new(); 447using Control parent = new(); 793using Control parent = new(); 888using Control parent = new(); 1937using Control parent = new() 2019using Control parent = new() 2924using Control parent = new(); 3026using Control parent = new(); 3121using Control parent = new() 3199using Control parent = new()
System\Windows\Forms\CommonDialogTests.cs (4)
155using Control owner = new(); 176using Control owner = new(); 190using Control owner = new(); 212using Control owner = new();
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
159using Control control = new();
System\Windows\Forms\ContainerControlTests.cs (20)
152using Control child = new(); 153Control grandchild = new(); 178Assert.Throws<ArgumentException>("value", () => control.ActiveControl = new Control()); 202using Control child = new(); 564using Control child = new(); 615using Control child = new(); 796using Control child1 = new(); 797using Control grandchild1 = new(); 800using Control grandchild2 = new(); 1022using Control child1 = new(); 1023using Control grandchild1 = new(); 1026using Control grandchild2 = new(); 1256using Control child1 = new(); 1257using Control child2 = new(); 1286using Control child1 = new(); 1287using Control child2 = new(); 1317using Control control = new(); 1342using Control control = new(); 1367using Control control = new(); 1383using Control control = new();
System\Windows\Forms\Control.ActiveXImplTests.cs (1)
17using Control control = new();
System\Windows\Forms\ControlBindingsCollectionTests.cs (26)
19Control control = new(); 40using Control control = new(); 59using Control control = new(); 71using Control control = new(); 126using Control control = new(); 143using Control control = new(); 160using Control control = new(); 177using Control control = new(); 194using Control control = new(); 211using Control control = new(); 228using Control control = new(); 241using Control control = new(); 255using Control control = new(); 272using Control control = new(); 280using Control control = new(); 291using Control control1 = new(); 292using Control control2 = new(); 304using Control control = new(); 324using Control control = new(); 340using Control control = new(); 352using Control control = new(); 365using Control control1 = new(); 366using Control control2 = new(); 382using Control control = new(); 400using Control control = new(); 413using Control control = new();
System\Windows\Forms\ControlTests.ControlCollection.cs (202)
19using Control owner = new(); 36using Control owner = new(); 37using Control control1 = new(); 38using Control control2 = new(); 110using Control owner = new(); 111using Control control1 = new(); 112using Control control2 = new(); 187using Control owner1 = new(); 188using Control owner2 = new(); 189using Control control = new(); 226using Control owner = new(); 331using Control owner = new(); 332using Control control = new() 360using Control owner = new(); 361using Control control = new() 389using Control owner = new(); 390using Control control = new() 428using Control owner = new(); 429using Control control = new() 467using Control owner = new(); 468using Control child1 = new(); 469using Control child2 = new(); 545using Control owner = new(); 546using Control control = new(); 588using Control owner = new(); 589using Control control = new(); 643using Control owner = new(); 644using Control control = new(); 793using Control owner = new(); 794using Control control = new(); 946using Control owner = new(); 1019using Control owner = new(); 1113using Control owner = new(); 1128owner = new Control(); 1134using Control control = new(); 1152control = new Control(); 1158using Control owner = new(); 1171using Control owner = new(); 1179using Control parent = new(); 1180using Control owner = new() 1191using Control grandparent = new(); 1192using Control parent = new() 1196using Control owner = new() 1207using Control owner = new(); 1208using Control child1 = new(); 1209using Control child2 = new(); 1210using Control child3 = new(); 1279using Control owner = new(); 1287using Control owner = new(); 1288using Control child1 = new(); 1289using Control child2 = new(); 1290using Control child3 = new(); 1337using Control owner = new(); 1338using Control child1 = new(); 1339using Control child2 = new(); 1340using Control child3 = new(); 1380using Control owner = new(); 1382using Control child1 = new(); 1383using Control child2 = new(); 1389Assert.False(collection.Contains(new Control())); 1405using Control owner = new(); 1406using Control child1 = new() 1410using Control child2 = new() 1414using Control child3 = new() 1437using Control owner = new(); 1438using Control child1 = new() 1442using Control child2 = new() 1446using Control child3 = new() 1450using Control grandchild1 = new() 1454using Control grandchild2 = new() 1458using Control grandchild3 = new() 1490using Control owner = new(); 1491using Control child1 = new() 1495using Control child2 = new() 1499using Control child3 = new() 1516using Control owner = new(); 1525using Control owner = new(); 1527using Control child1 = new(); 1528using Control child2 = new(); 1539using Control owner = new(); 1541using Control child1 = new(); 1542using Control child2 = new(); 1553using Control owner = new(); 1555using Control child1 = new(); 1556using Control child2 = new(); 1562Assert.Equal(-1, collection.GetChildIndex(new Control(), throwException: false)); 1568yield return new object[] { new Control() }; 1576using Control owner = new(); 1578using Control child1 = new(); 1579using Control child2 = new(); 1590using Control owner = new(); 1611using Control owner = new(); 1612using Control child1 = new(); 1613using Control child2 = new(); 1614using Control child3 = new(); 1650using Control owner = new(); 1651using Control child = new(); 1673using Control owner = new(); 1674using Control child1 = new(); 1675using Control child2 = new(); 1676using Control child3 = new(); 1706using Control owner = new(); 1707using Control child1 = new(); 1708using Control child2 = new(); 1709using Control child3 = new(); 1746using Control owner = new(); 1748using Control child1 = new(); 1749using Control child2 = new(); 1755Assert.Equal(-1, collection.IndexOf(new Control())); 1771using Control owner = new(); 1772using Control child1 = new() 1776using Control child2 = new() 1780using Control child3 = new() 1804using Control owner = new(); 1805using Control child1 = new() 1809using Control child2 = new() 1813using Control child3 = new() 1840using Control owner = new(); 1841using Control child1 = new() 1845using Control child2 = new() 1849using Control child3 = new() 1870using Control owner = new(); 1871using Control child1 = new(); 1872using Control child2 = new(); 1873using Control child3 = new(); 1892using Control owner = new(); 1903using Control owner = new(); 1904using Control child = new(); 1915using Control owner = new(); 1916using Control child1 = new(); 1917using Control child2 = new(); 1978using Control child1 = new(); 1979using Control child2 = new(); 2044using Control owner = new(); 2045using Control child1 = new(); 2046using Control child2 = new(); 2120using Control owner = new(); 2121using Control child1 = new(); 2122using Control child2 = new(); 2211using Control owner1 = new(); 2212using Control owner2 = new(); 2213using Control control1 = new(); 2214using Control control2 = new(); 2215using Control control3 = new(); 2239using Control owner = new(); 2240using Control control = new(); 2285using Control owner = new(); 2286using Control control = new(); 2343using Control owner = new(); 2344using Control control = new(); 2487using Control owner = new(); 2488using Control control = new(); 2619using Control owner = new(); 2683using Control owner = new(); 2769using Control owner = new(); 2770using Control child1 = new(); 2771using Control child2 = new(); 2847using Control owner = new(); 2848using Control child1 = new(); 2849using Control child2 = new(); 2905using Control owner = new(); 2916using Control owner = new(); 2917using Control child = new(); 2930using Control owner = new(); 2931using Control child1 = new() 2935using Control child2 = new() 2939using Control child3 = new() 3006using Control owner = new(); 3007using Control child1 = new() 3011using Control child2 = new() 3015using Control child3 = new() 3037using Control owner = new(); 3038using Control child1 = new(); 3039using Control child2 = new(); 3040using Control child3 = new(); 3105using Control owner = new(); 3106using Control child1 = new(); 3107using Control child2 = new(); 3108using Control child3 = new(); 3160using Control owner = new(); 3161using Control child1 = new(); 3162using Control child2 = new(); 3163using Control child3 = new(); 3239using Control owner = new(); 3240using Control child1 = new(); 3241using Control child2 = new(); 3242using Control child3 = new(); 3333using Control owner = new(); 3335using Control child2 = new(); 3336using Control child3 = new(); 3413using Control owner = new(); 3421using Control owner = new(); 3422using Control child = new(); 3433using Control owner = new(); 3434using Control control1 = new(); 3435using Control control2 = new(); 3507using Control owner = new(); 3516using Control owner = new(); 3517using Control child1 = new(); 3518using Control child2 = new(); 3578using Control owner = new(); 3590_layoutEngine = new Control().LayoutEngine;
System\Windows\Forms\ControlTests.cs (7)
291yield return new object[] { new Control(), string.Empty, string.Empty }; 292yield return new object[] { new Control(), "text", "text" }; 387yield return new object[] { new Control(), string.Empty, 0, 0, 0, 0, string.Empty }; 388yield return new object[] { new Control(), "text", 1, 2, 3, 4, "text" }; 573using Control parent = new(); 598using Control parent = new(); 1125public SubControl() : base()
System\Windows\Forms\ControlTests.Handlers.cs (53)
133using Control child1 = new(); 134using Control child2 = new(); 180using Control child1 = new() 184using Control child2 = new() 328using Control child1 = new(); 329using Control child2 = new(); 379using Control child1 = new() 383using Control child2 = new() 509using Control child1 = new(); 510using Control child2 = new(); 556using Control child1 = new() 560using Control child2 = new() 657using Control child1 = new(); 658using Control child2 = new(); 706using Control child1 = new() 710using Control child2 = new() 1015yield return new object[] { new ControlEventArgs(new Control()) }; 1107using Control child1 = new(); 1108using Control child2 = new(); 1156using Control child1 = new() 1160using Control child2 = new() 1504using Control child1 = new(); 1505using Control child2 = new(); 1551using Control child1 = new() 1555using Control child2 = new() 1739using Control child1 = new(); 1740using Control child2 = new(); 1788using Control child1 = new() 1792using Control child2 = new() 1960using Control child1 = new(); 1961using Control child2 = new(); 2007using Control child1 = new() 2011using Control child2 = new() 2619Control parent = new(); 2679Control parent = new(); 3137using Control parent = new(); 3891Control control = new() 3932Control control = new() 4109using Control parent = new() 5031using Control child1 = new(); 5032using Control child2 = new() 5081using Control child1 = new() 5085using Control child2 = new() 5362using Control child1 = new(); 5363using Control child2 = new(); 5580using Control parent = new(); 5667using Control parent = new(); 5721using Control grandchild1 = new(); 5722using Control child1 = new(); 5723using Control child2 = new(); 5797using Control grandchild1 = new(); 5798using Control child1 = new() 5802using Control child2 = new()
System\Windows\Forms\ControlTests.Internals.cs (39)
16using Control control = new(); 28using Control control = new() 40using Control control = new() 55using Control control = new() 74using Control control = new() 93using Control control = new(); 111using Control control = new() 152using Control control = new() 164using Control control = new() 176using Control control = new(); 188using Control control = new(); 200using Control control = new(); 208using Control control = new(); 209Control parent = new(); 220using Control control = new(); 222Control parent = new(); 232using Control control = new(); 241using Control control = new() 253using Control control = new() 265using Control control = new(); 266Control parent = new(); 277using Control control = new(); 287using Control control = new(); 288Control first = new() 292Control second = new() 296Control third = new() 322using Control control = new(); 323Control first = new() 327Control second = new() 331Control third = new() 351using Control control = new(); 352Control first = new() 356Control second = new() 360Control third = new() 379using Control control = new(); 380Control first = new() 384Control second = new() 388Control third = new() 407using Control control = new();
System\Windows\Forms\ControlTests.Methods.ClipboardTests.cs (2)
33using Control control = new(); 43using Control control = new();
System\Windows\Forms\ControlTests.Methods.cs (183)
136using Control parent = new(); 137using Control child1 = new(); 138using Control child2 = new(); 178using Control parent = new(); 179using Control child1 = new(); 180using Control child2 = new(); 233using Control parent = new(); 234using Control child1 = new(); 235using Control child2 = new(); 300using Control parent = new(); 302using Control child2 = new(); 505using Control parent = new(); 566using Control control = new() 692using Control parent = new(); 780using Control parent = new(); 781using Control control = new() 785using Control child1 = new() 789using Control child2 = new() 793using Control grandchild1 = new() 797using Control otherParent = new(); 798using Control otherControl = new() 802using Control emptyControl = new(); 845using Control parent = new(); 975using Control control = new(); 1020using Control parent = new(); 1023using Control control = new() 1073using Control control = new(); 1074using Control child1 = new(); 1075using Control child2 = new(); 1151using Control control = new(); 1198using Control control = new(); 1818using Control control = new(); 1826using Control control = new(); 1935using Control control = new(); 1944using Control control = new(); 2062using Control control = new(); 2082using Control control = new(); 2096using Control control = new(); 2103using Control grandparent = new(); 2104using Control parent = new() 2108using Control control = new() 2125using Control parent = new() 2129using Control control = new() 2146using Control control = new() 2164using Control parent = new() 2168using Control control = new() 2186using Control parent = new() 2190using Control control = new() 2207using Control cont = new(); 2208using Control first = new() 2212using Control second = new() 2216using Control third = new() 2235using Control cont = new(); 2236using Control first = new() 2240using Control second = new() 2244using Control third = new() 2263using Control cont = new(); 2264using Control first = new() 2268using Control second = new() 2272using Control third = new() 2291using Control cont = new(); 2292using Control first = new() 2296using Control second = new() 2300using Control third = new() 2329using Control control = new(); 2342using Control control = new() 2381using Control control = new() 2530.Returns(new Control()); 2866using Control control = new() 2881using Control control = new() 2957_layoutEngine = new Control().LayoutEngine; 3756using Control control = new(); 3781using Control control = new(); 3807using Control control = new(); 3836using Control control = new(); 3870using Control control = new(); 3906using Control control = new(); 3939using Control control = new(); 3972using Control control = new(); 3998using Control control = new(); 4025using Control control = new(); 4060using Control control = new(); 4090using Control control = new(); 4132using Control control = new(); 4141using Control control = new(); 4153using Control otherControl = new(); 4277using Control otherControlParent = new(); 4329using Control otherControl = new(); 4732using Control control = new(); 4786using Control parent = new(); 4787using Control control = new() 4821using Control parent = new(); 4915control.PerformLayout(new Control(), "OtherAffectedProperty"); 4919control.PerformLayout(new Control(), "OtherAffectedProperty"); 4938using Control control = new(); 4977yield return new object[] { new Control(), string.Empty }; 4978yield return new object[] { new Control(), "AffectedProperty" }; 4985using Control control = new(); 5041using Control parent = new(); 5042using Control control = new() 5074yield return new object[] { true, new Control(), string.Empty, 1 }; 5075yield return new object[] { true, new Control(), "AffectedProperty", 1 }; 5078yield return new object[] { false, new Control(), string.Empty, 0 }; 5079yield return new object[] { false, new Control(), "AffectedProperty", 0 }; 5086using Control parent = new(); 5137yield return new object[] { true, new Control(), string.Empty, 1 }; 5138yield return new object[] { true, new Control(), "AffectedProperty", 1 }; 5141yield return new object[] { false, new Control(), string.Empty, 0 }; 5142yield return new object[] { false, new Control(), "AffectedProperty", 0 }; 5189control.PerformLayout(new Control(), "OtherAffectedProperty"); 5193control.PerformLayout(new Control(), "OtherAffectedProperty"); 5212using Control control = new(); 5239control.PerformLayout(new Control(), "AffectedProperty"); 5254Assert.Throws<NullReferenceException>(() => control.PerformLayout(new Control(), "AffectedProperty")); 5332using Control parent = new(); 5509using Control parent = new(); 5562using Control parent = new(); 5610using Control parent = new(); 5710using Control parent = new(); 6001using Control parent = new(); 6209using Control parent = new(); 6295using Control control = new(); 6307using Control control = new(); 6348using Control control = new(); 6406using Control control = new(); 6426using Control control = new(); 6540yield return new object[] { new Control(), string.Empty, true, 1 }; 6541yield return new object[] { new Control(), "AffectedProperty", true, 1 }; 6544yield return new object[] { new Control(), string.Empty, false, 0 }; 6545yield return new object[] { new Control(), "AffectedProperty", false, 0 }; 6552using Control control = new(); 6580using Control control = new(); 6594control.PerformLayout(new Control(), "AnotherAffectedProperty"); 6610using Control control = new(); 6630using Control control = new(); 6660using Control control = new(); 6675control.PerformLayout(new Control(), "AnotherAffectedProperty"); 6691using Control control = new(); 6714using Control child = new(); 6743using Control control = new(); 6762using Control child = new(); 6789using Control control = new(); 6990using Control parent = new(); 6991using Control child1 = new(); 6992using Control child2 = new(); 7032using Control parent = new(); 7033using Control child1 = new(); 7034using Control child2 = new(); 7087using Control parent = new(); 7088using Control child1 = new(); 7089using Control child2 = new(); 7154using Control parent = new(); 7156using Control child2 = new(); 7275using Control parent = new(); 7648using Control parent = new(); 7905using Control parent = new(); 8505using Control parent = new(); 8762using Control parent = new(); 9302using Control parent = new(); 9600using Control parent = new(); 10086using Control parent = new(); 10189using Control control = new() 10207using Control control = new() 10238using Control control = new(); 10255using Control control = new(); 10285using Control control = new(); 10292using Control control = new(); 10304using Control control = new(); 11205using Control parent = new(); 11443using Control parent = new(); 11691using Control parent = new(); 11941using Control parent = new(); 12150using Control parent = new(); 12169using Control parent = new(); 12201using Control parent = new(); 12234using Control parent = new(); 12278using Control parent = new(); 12279using Control child1 = new(); 12325using Control parent = new(); 12514using Control control = new(); 12588using Control control = new(); 14209using Control grandparent = new(); 14297using Control grandparent = new();
System\Windows\Forms\ControlTests.Properties.cs (362)
23using Control control = new(); 39using Control control = new(); 83using Control control1 = new(); 109using Control control = new() 126using Control control = new() 143using Control control = new() 160using Control control = new() 177using Control control = new(); 185using Control control = new() 207using Control control = new(); 244using Control control = new(); 284using Control control = new(); 339using Control control = new(); 361using Control control = new() 412using Control parent = new(); 413using Control control = new() 457using Control grandparent = new(); 458using Control parent = new() 462using Control control = new() 558using Control parent = new(); 559using Control control = new() 677using Control grandparent = new(); 678using Control parent = new() 682using Control control = new() 769using Control control = new() 823using Control parent = new(); 824using Control control = new() 871using Control control = new(); 906using Control control = new() 921using Control control = new(); 948using Control parent = new(); 949using Control control = new() 1003using Control control = new() 1066using Control control = new(); 1109using Control parent = new(); 1110using Control control = new() 1192using Control control = new() 1231using Control control = new() 1248using Control control = new() 1291using Control child1 = new(); 1292using Control child2 = new(); 1293using Control control = new(); 1315using Control child1 = new() 1319using Control child2 = new() 1323using Control control = new(); 1351using Control control = new(); 1379using Control control = new(); 1414using Control control = new(); 1439using Control child1 = new(); 1440using Control child2 = new(); 1441using Control control = new(); 1519using Control child1 = new() 1523using Control child2 = new() 1527using Control control = new(); 1599using Control control = new(); 1607using Control control = new(); 1623using Control control = new(); 1639using Control control = new() 1662using Control control = new(); 1691using Control child1 = new(); 1692using Control child2 = new(); 1693using Control control = new(); 1715using Control child1 = new() 1719using Control child2 = new() 1723using Control control = new(); 1742using Control control = new(); 1784using Control control = new(); 1810using Control child1 = new(); 1811using Control child2 = new(); 1812using Control control = new(); 1897using Control child1 = new() 1901using Control child2 = new() 1905using Control control = new(); 2075using Control control = new(); 2110using Control control = new(); 2136using Control control = new(); 2144using Control parent = new() 2148using Control control = new() 2163using Control control = new() 2180using Control control = new() 2197using Control control = new() 2215using Control control = new(); 2257using Control child1 = new(); 2258using Control child2 = new(); 2259using Control control = new(); 2344using Control child1 = new() 2348using Control child2 = new() 2352using Control control = new(); 2695using Control parent = new(); 2906using Control parent = new(); 3049using Control control = new() 3065using Control control = new() 3080using Control parent = new() 3085using Control control = new() 3099using Control control = new() 3115using Control parent = new() 3120using Control control = new() 3132using Control control = new() 3154using Control control = new(); 3191using Control control = new() 3213using Control control = new(); 3249using Control control = new() 3286yield return new object[] { new Control(), Size.Empty }; 3328using Control control = new(); 3486using Control control = new(); 3540using Control control = new() 3558using Control control = new() 3576using Control control = new() 3591using Control control = new() 3607using Control control = new(); 3649yield return new object[] { new Control.ControlCollection(new Control()) }; 3676using Control control = new(); 3682using Control child = new(); 3696using Control control = new(); 3702using Control child = new(); 3716using Control control = new() 3732using Control parent = new() 3736using Control control = new() 3756using Control control = new() 3784using Control parent = new() 3810using Control control = new() 3827using Control control = new(); 3856using Control child1 = new(); 3857using Control child2 = new(); 3858using Control control = new(); 3880using Control child1 = new() 3884using Control child2 = new() 3888using Control control = new(); 3907using Control control = new(); 3949using Control child1 = new(); 3950using Control child2 = new(); 3951using Control control = new(); 4036using Control child1 = new() 4040using Control child2 = new() 4044using Control control = new(); 4128using Control control = new(); 4150using Control control = new() 4185using Control parent = new(); 4186using Control control = new() 4275using Control parent = new(); 4276using Control control = new() 4332using Control control = new() 4351using Control control = new(); 4385using Control control = new() 4424using Control control = new(); 4506using Control control = new() 4569using Control control = new() 4607using Control child1 = new(); 4608using Control child2 = new(); 4609using Control control = new() 4684using Control child1 = new() 4688using Control child2 = new() 4692using Control control = new() 4768using Control control = new(); 4784using Control control = new(); 4801using Control parent = new() 4805using Control control = new() 4825using Control control = new() 5024using Control control = new(); 5066using Control child1 = new(); 5067using Control child2 = new(); 5068using Control control = new(); 5153using Control child1 = new() 5157using Control child2 = new() 5161using Control control = new(); 5245using Control control = new(); 5270using Control control = new(); 5295using Control control = new() 5312using Control control = new() 5331using Control child1 = new(); 5332using Control child2 = new(); 5333using Control control = new(); 5355using Control child1 = new() 5359using Control child2 = new() 5363using Control control = new(); 5392using Control control = new(); 5420using Control control = new(); 5455using Control control = new(); 5480using Control child1 = new(); 5481using Control child2 = new(); 5482using Control control = new(); 5560using Control child1 = new() 5564using Control child2 = new() 5568using Control control = new(); 5641using Control control = new(); 5657using Control control = new(); 5672using Control cont = new(); 5972using Control parent = new(); 6207using Control parent = new(); 6365using Control control = new() 6382using Control control = new(); 6410using Control control = new(); 6446using Control control = new(); 6560using Control control = new(); 6573using Control control = new(); 6587using Control control = new() 6608using Control control = new(); 6639using Control control = new(); 6742using Control parent = new(); 6936using Control parent = new(); 7089using Control control = new(); 7147using Control control = new(); 7221using Control parent = new(); 7419using Control parent = new(); 7575using Control control = new(); 7599using Control control = new(); 7622using Control control = new(); 7675yield return new object[] { new Control(), new Padding(3) }; 7709using Control control = new(); 7729using Control parent = new(); 7730using Control control = new() 7759using Control control = new(); 7798using Control parent = new(); 7799using Control control = new() 7853using Control control = new(); 7869using Control control = new(); 7883yield return new object[] { new Control(), Size.Empty }; 7931using Control control = new(); 7953using Control control = new() 7999using Control control = new() 8030using Control control = new() 8055using Control control = new() 8102using Control parent = new(); 8103using Control control = new() 8157using Control parent = new(); 8158using Control control = new() 8200using Control control = new(); 8235using Control control = new() 8273using Control control = new() 8311using Control parent = new(); 8312using Control control = new() 8378using Control parent = new(); 8379using Control control = new() 8446using Control control = new(); 8470using Control control = new(); 8492yield return new object[] { new Control(), Size.Empty }; 8540using Control control = new(); 8584using Control control = new() 8637using Control control = new() 8668using Control control = new() 8699using Control control = new() 8746using Control parent = new(); 8747using Control control = new() 8807using Control parent = new(); 8808using Control control = new() 8872using Control control = new(); 8929using Control control = new() 8995using Control control = new() 9054using Control parent = new(); 9055using Control control = new() 9142using Control parent = new(); 9143using Control control = new() 9216using Control control = new(); 9240using Control control = new(); 9302using Control control = new() 9318using Control control = new() 9335using Control control = new() 9370using Control control = new() 9387yield return new object[] { new Control(), Padding.Empty }; 9415using Control control = new(); 9441using Control parent = new(); 9442using Control control = new() 9539using Control parent = new(); 9610using Control control = new(); 9648using Control control = new(); 9664using Control control = new(); 9679yield return new object[] { new Control() }; 9687using Control control = new() 9704using Control oldParent = new(); 9705using Control control = new() 9725using Control parent = new(); 9726using Control control = new() 9745using Control control = new(); 9773using Control parent = new(); 9774using Control control = new(); 9809using Control control = new(); 9817using Control child = new(); 9818using Control control = new(); 9828using Control parent = new(); 9839using Control control = new(); 9840using Control child = new() 9858using Control child = new() 9880using Control control = new() 9898using Control control = new() 9920using Control control = new(); 9950using Control control = new() 9984using Control control = new(); 10059using Control control = new() 10076using Control control = new() 10095using Control child1 = new(); 10096using Control child2 = new(); 10097using Control control = new(); 10119using Control child1 = new() 10123using Control child2 = new() 10127using Control control = new(); 10151using Control control = new(); 10182using Control control = new() 10213using Control control = new(); 10248using Control control = new(); 10273using Control child1 = new(); 10274using Control child2 = new() 10278using Control control = new(); 10356using Control child1 = new() 10360using Control child2 = new() 10364using Control control = new(); 10437using Control control = new(); 10445using Control control = new(); 10473using Control control = new(); 10651using Control control = new() 10668using Control control = new(); 10704using Control control = new() 10781using Control control = new(); 10957using Control control = new() 11371using Control parent = new(); 11616using Control parent = new(); 11756using Control control = new(); 11780using Control control = new(); 11806using Control control = new() 11822using Control control = new() 11860using Control control = new(); 11868using Control control = new() 11890using Control control = new(); 11926using Control control = new() 11965using Control control = new() 11982using Control control = new(); 12010using Control control = new(); 12046using Control control = new(); 12073using Control control = new(); 12176using Control parent = new(); 12368using Control parent = new(); 12521using Control control = new(); 12569using Control grandparent = new(); 12570using Control parent = new() 12574using Control control = new() 12588using Control parent = new() 12592using Control control = new() 12605using Control control = new() 12627using Control control = new(); 12628using Control child1 = new(); 12629using Control child2 = new(); 12658using Control control = new(); 12698using Control parent = new() 12702using Control item = new() 12717using Control control = new() 12739using Control parent = new(); 12740using Control control = new() 12813using Control parent = new(); 12814using Control control = new() 12871using Control control = new() 12909using Control child1 = new(); 12910using Control child2 = new(); 12911using Control control = new() 12986using Control child1 = new() 12990using Control child2 = new() 12994using Control control = new() 13070using Control control = new(); 13086using Control control = new(); 13391using Control parent = new(); 13626using Control parent = new(); 13765using Control cont = new(); 13777using Control control = new() 13792using Control control = new();
System\Windows\Forms\DataGridViewTests.cs (8)
115using Control parent = new(); 257using Control parent = new(); 819yield return new object[] { new Control() }; 844using Control oldParent = new(); 865using Control parent = new(); 911using Control parent = new(); 1032using Control parent = new(); 1181using Control parent = new();
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
1589using Control parent = new(); 1880using Control parent = new();
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
805using Control result = new();
System\Windows\Forms\ErrorProviderTests.cs (21)
858yield return new object[] { new Control(), true }; 873using Control control = new(); 896using Control control = new(); 926using Control control = new(); 955using Control control = new(); 973using Control control = new(); 991using Control control = new(); 1047using Control control = new(); 1074using Control control = new(); 1098using Control control = new(); 1107using Control control = new(); 1132yield return new object[] { blinkStyle, new SubControl { Parent = new() }, error, error ?? string.Empty }; 1142using Control originalParent = new(); 1143using Control newParent = new(); 1229using Control control1 = new(); 1240using Control control1 = new(); 1253using Control control1 = new(); 1266using Control control1 = new(); 1279using Control control1 = new(); 1295using Control control1 = new(); 1308using Control control1 = new();
System\Windows\Forms\FlowLayoutPanelTests.cs (8)
217using Control extendee = new() 229yield return new object[] { new Control() }; 230yield return new object[] { new Control { Parent = new() } }; 252using Control child = new(); 320using Control child = new(); 356using Control parent = new(); 357using Control child = new()
System\Windows\Forms\FlowLayoutSettingsTests.cs (4)
102Assert.False(settings.GetFlowBreak(new Control())); 136using Control child = new(); 176using Control parent = new(); 177using Control child = new()
System\Windows\Forms\FormTests.cs (7)
927yield return new object[] { new Control() }; 955using Control oldParent = new(); 1069yield return new object[] { new Control() }; 1101using Control parent = new(); 1155using Control parent = new(); 1206using Control parent = new(); 2603using Control control = new();
System\Windows\Forms\GroupBoxTests.cs (8)
269using Control parent = new(); 417using Control parent = new(); 927using Control child = new() 1220using Control parent = new(); 1317using Control parent = new(); 1984using Control parent = new(); 2029using Control parent = new() 2045using Control parent = new()
System\Windows\Forms\HelpProviderTests.cs (21)
52using Control control = new(); 77yield return new object[] { new Control(), true }; 92Assert.Null(provider.GetHelpKeyword(new Control())); 106Assert.Equal(HelpNavigator.AssociateIndex, provider.GetHelpNavigator(new Control())); 120Assert.Null(provider.GetHelpString(new Control())); 134Assert.False(provider.GetShowHelp(new Control())); 149using Control control = new(); 160using Control control = new(); 189using Control control = new(); 223using Control control = new(); 255using Control control = new(); 290using Control control = new(); 307using Control control = new(); 325using Control control = new(); 352Assert.Throws<InvalidEnumArgumentException>("navigator", () => provider.SetHelpNavigator(new Control(), navigator)); 360using Control control = new(); 379using Control control = new(); 399using Control control = new(); 426using Control control = new(); 452using Control control = new(); 492Assert.False(provider.ShouldSerializeShowHelp(new Control()));
System\Windows\Forms\HtmlDocumentTests.cs (96)
20using Control parent = new(); 52using Control parent = new(); 84using Control parent = new(); 108using Control parent = new(); 138using Control parent = new(); 158using Control parent = new(); 178using Control parent = new(); 195using Control parent = new(); 212using Control parent = new(); 237using Control parent = new(); 269using Control parent = new(); 301using Control parent = new(); 331using Control parent = new(); 361using Control parent = new(); 378using Control parent = new(); 395using Control parent = new(); 420using Control parent = new(); 437using Control parent = new(); 472using Control parent = new(); 487using Control parent = new(); 502using Control parent = new(); 524using Control parent = new(); 539using Control parent = new(); 555using Control parent = new(); 577using Control parent = new(); 592using Control parent = new(); 606using Control parent = new(); 630using Control parent = new(); 664using Control parent = new(); 678using Control parent = new(); 693using Control parent = new(); 717using Control parent = new(); 749using Control parent = new(); 781using Control parent = new(); 803using Control parent = new(); 834using Control parent = new(); 854using Control parent = new(); 870using Control parent = new(); 890using Control parent = new(); 906using Control parent = new(); 938using Control parent = new(); 970using Control parent = new(); 992using Control parent = new(); 1022using Control parent = new(); 1042using Control parent = new(); 1058using Control parent = new(); 1083using Control parent = new(); 1106using Control parent = new(); 1130using Control parent = new(); 1167using Control parent = new(); 1181using Control parent = new(); 1196using Control parent = new(); 1218using Control parent = new(); 1248using Control parent = new(); 1269using Control parent = new(); 1301using Control parent = new(); 1333using Control parent = new(); 1355using Control parent = new(); 1385using Control parent = new(); 1404using Control parent = new(); 1466using Control parent = new(); 1504using Control parent = new(); 1522using Control parent = new(); 1542using Control parent = new(); 1559using Control parent = new(); 1575using Control parent = new(); 1603using Control parent = new(); 1620using Control parent = new(); 1637using Control parent = new(); 1660using Control parent = new(); 1678using Control parent = new(); 1693using Control parent = new(); 1712using Control parent = new(); 1730using Control parent = new(); 1744using Control parent = new(); 1761using Control parent = new(); 1786using Control parent = new(); 1806using Control parent = new(); 1820using Control parent = new(); 1838using Control parent = new(); 1877using Control parent = new(); 1904using Control parent = new(); 1921using Control parent = new(); 1938using Control parent = new(); 1956using Control parent = new(); 1976using Control parent = new(); 1997using Control parent = new(); 2035using Control parent = new(); 2073using Control parent = new(); 2111using Control parent = new(); 2149using Control parent = new(); 2187using Control parent = new(); 2225using Control parent = new(); 2263using Control parent = new(); 2301using Control parent = new(); 2339using Control parent = new();
System\Windows\Forms\HtmlElementTests.cs (127)
20using Control parent = new(); 40using Control parent = new(); 57using Control parent = new(); 76using Control parent = new(); 91using Control parent = new(); 106using Control parent = new(); 122using Control parent = new(); 141using Control parent = new(); 158using Control parent = new(); 180using Control parent = new(); 198using Control parent = new(); 214using Control parent = new(); 236using Control parent = new(); 275using Control parent = new(); 290using Control parent = new(); 308using Control parent = new(); 323using Control parent = new(); 341using Control parent = new(); 366using Control parent = new(); 397using Control parent = new(); 412using Control parent = new(); 431using Control parent = new(); 457using Control parent = new(); 488using Control parent = new(); 503using Control parent = new(); 518using Control parent = new(); 533using Control parent = new(); 552using Control parent = new(); 578using Control parent = new(); 609using Control parent = new(); 624using Control parent = new(); 639using Control parent = new(); 654using Control parent = new(); 670using Control parent = new(); 696using Control parent = new(); 729using Control parent = new(); 744using Control parent = new(); 762using Control parent = new(); 780using Control parent = new(); 798using Control parent = new(); 814using Control parent = new(); 829using Control parent = new(); 853using Control parent = new(); 884using Control parent = new(); 915using Control parent = new(); 930using Control parent = new(); 945using Control parent = new(); 964using Control parent = new(); 990using Control parent = new(); 1021using Control parent = new(); 1036using Control parent = new(); 1057using Control parent = new(); 1075using Control parent = new(); 1093using Control parent = new(); 1117using Control parent = new(); 1147using Control parent = new(); 1165using Control parent = new(); 1183using Control parent = new(); 1207using Control parent = new(); 1237using Control parent = new(); 1256using Control parent = new(); 1275using Control parent = new(); 1304using Control parent = new(); 1337using Control parent = new(); 1355using Control parent = new(); 1379using Control parent = new(); 1409using Control parent = new(); 1424using Control parent = new(); 1456using Control parent = new(); 1494using Control parent = new(); 1511using Control parent = new(); 1576using Control parent = new(); 1617using Control parent = new(); 1659using Control parent = new(); 1698using Control parent = new(); 1717using Control parent = new(); 1737using Control parent = new(); 1766using Control parent = new(); 1784using Control parent = new(); 1802using Control parent = new(); 1824using Control parent = new(); 1842using Control parent = new(); 1858using Control parent = new(); 1890using Control parent = new(); 1910using Control parent = new(); 1925using Control parent = new(); 1950using Control parent = new(); 1965using Control parent = new(); 1988using Control parent = new(); 2026using Control parent = new(); 2070using Control parent = new(); 2108using Control parent = new(); 2152using Control parent = new(); 2188using Control parent = new(); 2232using Control parent = new(); 2267using Control parent = new(); 2311using Control parent = new(); 2327using Control parent = new(); 2343using Control parent = new(); 2363using Control parent = new(); 2382using Control parent = new(); 2400using Control parent = new(); 2421using Control parent = new(); 2440using Control parent = new(); 2465using Control parent = new(); 2480using Control parent = new(); 2497using Control parent = new(); 2520using Control parent = new(); 2544using Control parent = new(); 2585using Control parent = new(); 2626using Control parent = new(); 2667using Control parent = new(); 2708using Control parent = new(); 2749using Control parent = new(); 2790using Control parent = new(); 2831using Control parent = new(); 2872using Control parent = new(); 2913using Control parent = new(); 2954using Control parent = new(); 2995using Control parent = new(); 3036using Control parent = new(); 3077using Control parent = new(); 3118using Control parent = new(); 3159using Control parent = new(); 3200using Control parent = new(); 3241using Control parent = new(); 3282using Control parent = new();
System\Windows\Forms\HtmlWindowTests.cs (4)
17using Control parent = new(); 33using Control parent = new(); 49using Control parent = new(); 70using Control parent = new();
System\Windows\Forms\Layout\FlowLayoutTests.cs (28)
42using Control child1 = new() 47using Control child2 = new() 52using Control largeChild = new() 57using Control emptyChild = new() 61using Control emptyChildWithMargin = new() 66using Control child3 = new() 71using Control child4 = new() 103using Control child1 = new() 108using Control child2 = new() 113using Control largeChild = new() 118using Control emptyChild = new() 122using Control emptyChildWithMargin = new() 127using Control child3 = new() 132using Control child4 = new() 164using Control child1 = new() 169using Control child2 = new() 174using Control largeChild = new() 179using Control emptyChild = new() 183using Control emptyChildWithMargin = new() 188using Control child3 = new() 193using Control child4 = new() 225using Control child1 = new() 230using Control child2 = new() 235using Control largeChild = new() 240using Control emptyChild = new() 244using Control emptyChildWithMargin = new() 249using Control child3 = new() 254using Control child4 = new()
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (58)
161using Control child = new(); 170using Control child = new(); 211using Control child = new(); 221using Control child = new(); 231using Control child = new(); 241using Control child = new(); 253using Control child = new(); 260using Control child = new(); 301using Control child = new(); 310using Control child = new(); 319using Control child = new(); 354using Control child = new(); 361using Control child = new(); 402using Control child = new(); 411using Control child = new(); 462using Control child = new(); 499using Control parent = new(); 500using Control child = new() 552using Control child = new(); 574using Control parent = new(); 575using Control child = new() 623using Control child = new(); 637using Control child = new(); 686using Control child = new(); 718using Control parent = new(); 719using Control child = new() 775using Control child = new(); 801using Control parent = new(); 802using Control child = new() 843using Control child = new(); 857using Control child = new(); 924using Control child = new(); 953using Control parent = new(); 954using Control child = new() 1008using Control child = new(); 1032using Control parent = new(); 1033using Control child = new() 1074using Control child = new(); 1088using Control child = new(); 1162using Control child = new(); 1194using Control parent = new(); 1195using Control child = new() 1251using Control child = new(); 1277using Control parent = new(); 1278using Control child = new() 1319using Control child = new(); 1333using Control child = new(); 1400using Control child = new(); 1429using Control parent = new(); 1430using Control child = new() 1484using Control child = new(); 1508using Control parent = new(); 1509using Control child = new() 1550using Control child = new(); 1564using Control child = new(); 1662using Control controlWithName = new() 1666using Control controlWithDefaultName = new(); 1779using Control controlWithName = new() { Name = "name" };
System\Windows\Forms\LayoutEventArgsTests.cs (3)
16yield return new object[] { new Control(), "" }; 33yield return new object[] { new Control(), "" }; 34yield return new object[] { new Control(), "affectedProperty" };
System\Windows\Forms\ListBoxTests.cs (1)
930using Control parent = new();
System\Windows\Forms\MdiClientTests.cs (7)
181using Control parent = new() 260using Control parent = new() 376using Control parent = new() 420using Control parent = new() 698using Control parent = new(); 847using Control parent = new() 1009using Control parent = new()
System\Windows\Forms\MenuStripTests.cs (1)
699using Control parent = new();
System\Windows\Forms\MixedDpiHostingTests.cs (1)
29using Control control = new();
System\Windows\Forms\NativeWindowTests.cs (12)
22using Control control = new(); 51using Control control = new(); 88using Control control = new(); 145using Control control = new(); 174using Control control = new(); 238using Control control = new(); 295using Control control = new(); 340using Control control = new(); 406using Control control = new(); 416using Control control = new(); 428using Control control = new(); 474using Control control = new();
System\Windows\Forms\PanelTests.cs (5)
257using Control parent = new(); 354_layoutEngine = new Control().LayoutEngine; 405using Control parent = new(); 614using Control child = new() 629using Control child = new()
System\Windows\Forms\PictureBoxTests.cs (7)
240using Control control = new() 259using Control control = new(); 277using Control control = new() 1119yield return new object[] { new Control() }; 1142using Control oldParent = new(); 1161using Control parent = new(); 1178using Control parent = new();
System\Windows\Forms\ReadOnlyControlCollectionTests.cs (1)
13using Control owner = new();
System\Windows\Forms\RichTextBoxTests.cs (8)
462using Control parent = new(); 679using Control control = new(); 2133using Control parent = new(); 2189using Control parent = new(); 2964using Control parent = new(); 3087using Control parent = new(); 7102using Control parent = new(); 7330using Control parent = new();
System\Windows\Forms\ScreenTests.cs (3)
68yield return new object[] { new Control() }; 70Control createdControl = new(); 101using Control control = new();
System\Windows\Forms\ScrollableControlTests.cs (6)
1394yield return new object[] { true, new LayoutEventArgs(affectedControl = new Control(), "affectedProperty"), 2, affectedControl }; 1398yield return new object[] { false, new LayoutEventArgs(affectedControl = new Control(), "affectedProperty"), 1, affectedControl }; 1570Func<Control> controlFactory = () => new Control 1665static Control CreateControl() => new() 1823using Control parent = new() 2486yield return new object[] { true, true, true, new Size(70, 80), new Control(), new Rectangle(0, 0, 70, 80) };
System\Windows\Forms\SplitterPanelTests.cs (4)
216using Control parent = new(); 277using Control parent = new(); 715yield return new object[] { new Control() }; 739using Control parent = new();
System\Windows\Forms\SplitterTests.cs (12)
1142using Control parent = new() 1197using Control parent = new() 1202using Control child = new() 1242using Control parent = new() 1247using Control child = new() 1314using Control parent = new() 1361using Control parent = new() 1366using Control child = new() 2009using Control parent = new() 2014using Control child = new() 2110using Control parent = new() 2115using Control child = new()
System\Windows\Forms\StatusStripTests.cs (1)
1134yield return new object[] { layoutStyle, dock, new LayoutEventArgs(new Control(), "AffectedProperty") };
System\Windows\Forms\TabControl.ControlCollectionTests.cs (3)
877using Control value = new(); 1457using Control value1 = new(); 1458using Control value2 = new();
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (8)
1086yield return new object[] { new Control() }; 1590Assert.False(iList.Contains(new Control())); 1602Assert.False(iList.Contains(new Control())); 1895Assert.Equal(-1, iList.IndexOf(new Control())); 1907Assert.Equal(-1, iList.IndexOf(new Control())); 3135yield return new object[] { new Control() }; 3932yield return new object[] { new Control() }; 4797yield return new object[] { new Control() };
System\Windows\Forms\TableLayoutControlCollectionTests.cs (3)
34using Control child = new(); 46using Control child = new(); 58using Control child = new();
System\Windows\Forms\TableLayoutPanelTests.cs (62)
345using Control child = new(); 365using Control child = new(); 499using Control controlWithName = new() { Name = "name" }; 500using Control controlWithDefaultName = new(); 648using Control child = new(); 663using Control child = new(); 672using Control child = new(); 681using Control child = new(); 696using Control child = new(); 737using Control child = new(); 777using Control child = new(); 797using Control child = new() 820using Control child = new() 842using Control otherChild = new(); 843using Control child = new() 890using Control child = new(); 904using Control child = new(); 916using Control child = new(); 934using Control child = new(); 1142using Control child = new(); 1322yield return new object[] { new LayoutEventArgs(new Control(), null) }; 1323yield return new object[] { new LayoutEventArgs(new Control(), string.Empty) }; 1324yield return new object[] { new LayoutEventArgs(new Control(), "ChildIndex") }; 1325yield return new object[] { new LayoutEventArgs(new Control(), "Visible") }; 1326yield return new object[] { new LayoutEventArgs(new Control(), "Items") }; 1327yield return new object[] { new LayoutEventArgs(new Control(), "Rows") }; 1328yield return new object[] { new LayoutEventArgs(new Control(), "Columns") }; 1329yield return new object[] { new LayoutEventArgs(new Control(), "RowStyles") }; 1330yield return new object[] { new LayoutEventArgs(new Control(), "ColumnStyles") }; 1331yield return new object[] { new LayoutEventArgs(new Control(), "TableIndex") }; 1332yield return new object[] { new LayoutEventArgs(new Control(), "GrowStyle") }; 1333yield return new object[] { new LayoutEventArgs(new Control(), "CellBorderStyle") }; 1334yield return new object[] { new LayoutEventArgs(new Control(), "LayoutSettings") }; 1335yield return new object[] { new LayoutEventArgs(new Control(), "NoSuchProperty") }; 1507using Control child1 = new(); 1512using Control child2 = new(); 1557using Control child = new(); 1593using Control parent = new(); 1594using Control child = new() 1644using Control child = new(); 1668using Control child = new(); 1699using Control parent = new(); 1700using Control child = new() 1750using Control child = new(); 1770Assert.Throws<ArgumentOutOfRangeException>("column", () => control.SetColumn(new Control(), -2)); 1779using Control child = new(); 1808using Control parent = new(); 1809using Control child = new() 1859using Control child = new(); 1884Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SetColumnSpan(new Control(), value)); 1895using Control child = new(); 1926using Control parent = new(); 1927using Control child = new() 1977using Control child = new(); 1997Assert.Throws<ArgumentOutOfRangeException>("row", () => control.SetRow(new Control(), -2)); 2006using Control child = new(); 2035using Control parent = new(); 2036using Control child = new() 2086using Control child = new(); 2110Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SetRowSpan(new Control(), value)); 2116using Control extendee = new(); 2128yield return new object[] { new Control() };
System\Windows\Forms\TabPageTests.cs (6)
2615using Control parent = new(); 3816using Control parent = new() 3820using Control control = new() 3832using Control grandparent = new(); 3833using Control parent = new() 3837using Control control = new()
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (2)
30using Control control1 = new(); 31using Control control2 = new();
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
98using Control control = new();
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
496using Control parent = new(); 557using Control parent = new(); 636using Control parent = new()
System\Windows\Forms\ToolStripControlHostTests.cs (167)
20yield return new object[] { new Control() }; 23new Control 41yield return new object[] { new Control { Enabled = false } }; 42yield return new object[] { new Control { Visible = false } }; 139using Control c = new(); 158using Control c = new(); 169using Control c = new(); 188using Control c = new(); 199using Control c = new(); 218using Control c = new(); 229using Control c = new(); 249using Control c = new(); 257using Control c = new(); 268using Control c = new(); 287using Control c = new(); 323using Control c = new(); 334using Control c = new(); 351using Control c = new(); 365using Control c = new(); 382using Control c = new(); 391using Control c = new(); 410using Control c = new(); 429using Control c = new(); 440using Control c = new(); 451using Control c = new(); 470using Control c = new(); 494using Control c = new() 508using Control c = new(); 518using Control c = new(); 543using Control c = new(); 557using Control c = new(); 569using Control c = new(); 580using Control c = new(); 595using Control c = new(); 614using Control c = new(); 626using Control c = new(); 640using Control c = new(); 654using Control c = new(); 664using Control c = new(); 678using Control c = new(); 700using Control c = new() 725using Control c = new(); 745using Control c = new(); 753using Control c = new(); 764using Control c = new(); 781using Control c = new(); 817using Control c = new(); 826using Control c = new(); 843using Control c = new(); 866using Control c = new(); 893using Control c = new(); 928using Control c = new(); 938using Control c = new(); 948using Control c = new(); 968using Control c = new(); 989using Control c = new(); 1001using Control c = new(); 1027using Control c = new(); 1041using Control c = new(); 1067using Control c = new(); 1076using Control c = new(); 1087using Control c = new(); 1106using Control c = new(); 1142using Control c = new(); 1153using Control c = new(); 1170using Control c = new(); 1184using Control c = new(); 1201using Control c = new(); 1222using Control c = new(); 1244using Control c = new(); 1264using Control c = new(); 1275using Control c = new(); 1297using Control c = new(); 1319using Control c = new(); 1348using Control c = new(); 1389using Control c = new(); 1457using Control c = new(); 1532using Control c = new(); 1548using Control c = new(); 1559using Control c = new(); 1579using Control c = new(); 1598using Control c = new(); 1635using Control c = new(); 1644using Control c = new(); 1673using Control c = new(); 1687using Control c = new(); 1716using Control c = new(); 1727using Control c = new(); 1749using Control c = new(); 1772using Control c = new(); 1818using Control c = new(); 1839using Control c = new(); 1860using Control c = new(); 1882using Control c = new(); 1918using Control c = new(); 1947using Control c = new(); 1970using Control c = new(); 1988using Control c = new(); 2009using Control c = new(); 2028using Control c = new(); 2048using Control c = new(); 2070using Control c = new(); 2089using Control c = new(); 2109using Control c = new(); 2129using Control c = new(); 2161using Control c = new(); 2180using Control c = new(); 2206using Control c = new() 2230using Control c = new(); 2251using Control c = new(); 2270using Control c = new(); 2307using Control c = new(); 2325using Control c = new(); 2342using Control c = new(); 2358using Control c = new(); 2367using Control c = new(); 2387using Control c = new(); 2408using Control c = new(); 2438using Control c = new(); 2474using Control c = new(); 2512using Control c = new(); 2532using Control c = new(); 2550using Control c = new(); 2565using Control c = new(); 2577using Control c = new(); 2619using Control c = new(); 2661using Control c = new(); 2693using Control c = new(); 2703using Control c = new(); 2723using Control c = new() 2738using Control c = new() 2756using Control c = new(); 2770using Control c = new() 2794using Control c = new(); 2808using Control c = new(); 2833using Control c = new(); 2858using Control c = new() 2876using Control c = new(); 2901using Control c = new(); 2926using Control c = new(); 2951using Control c = new(); 2964using Control c = new(); 2989using Control c = new(); 3014using Control c = new(); 3059using Control c = new(); 3078using Control c = new(); 3102using Control c = new(); 3171using Control controlParent = new(); 3172using Control c = new() 3246using Control c = new(); 3267using Control c = new(); 4138using Control c = new(); 4147using Control c = new(); 4172using Control c = new(); 4201using Control c = new(); 4242using Control c = new(); 4258using Control c = new(); 4302using Control c = new(); 4317using Control c = new(); 4358using Control c = new(); 4390using Control c = new(); 4413using Control c = new(); 4423using Control c = new(); 4446using Control c = new(); 4457using Control c = new(); 4491using Control c = new(); 4527using Control c = new();
System\Windows\Forms\ToolStripDropDownTests.cs (19)
703using Control parent = new(); 1325using Control parent = new() 1357using Control parent = new() 1487using Control parent = new() 2329using Control sourceControl = new() 2361using Control sourceControl = new() 2912using Control parent = new(); 3092using Control sourceControl = new() 3373using Control sourceControl = new() 3432using Control sourceControl = new() 4138yield return new object[] { true, new LayoutEventArgs(new Control(), "affectedProperty"), 2 }; 4142yield return new object[] { false, new LayoutEventArgs(new Control(), "affectedProperty"), 1 }; 4188yield return new object[] { autoSize, new LayoutEventArgs(new Control(), "affectedProperty") }; 4331yield return new object[] { true, new LayoutEventArgs(new Control(), "affectedProperty"), 2, 3 }; 4335yield return new object[] { false, new LayoutEventArgs(new Control(), "affectedProperty"), 1, 1 }; 4496yield return new object[] { true, new LayoutEventArgs(new Control(), "affectedProperty"), 2, 3 }; 4500yield return new object[] { false, new LayoutEventArgs(new Control(), "affectedProperty"), 1, 1 }; 4991using Control control = new(); 5023using Control control = new();
System\Windows\Forms\ToolStripPanel.ToolStripPanelControlCollection.XYComparerTests.cs (2)
11private readonly Control _control1 = new() { Bounds = new Rectangle(10, 20, 100, 100) }; 12private readonly Control _control2 = new() { Bounds = new Rectangle(10, 10, 100, 100) };
System\Windows\Forms\ToolStripTests.cs (12)
914using Control parent = new(); 1086using Control parent = new() 1403using Control parent = new() 1876using Control parent = new() 1907using Control parent = new() 2457using Control parent = new(); 2921using Control parent = new(); 5033yield return new object[] { new ControlEventArgs(new Control()) }; 5912Control control = new() 5960Control control = new() 6162using Control parent = new() 6921using Control parent = new();
System\Windows\Forms\ToolStripTextBoxTests.cs (1)
36Control control = new();
System\Windows\Forms\ToolTipTests.cs (8)
624yield return new object[] { new Control(), true }; 638yield return new object[] { new Control() }; 652using Control control = new(); 675using Control control = new(); 696using Control control = new(); 723using Control control = new(); 751using Control control = new(); 809using Control topLevelControl = new();
System\Windows\Forms\UnsupportedTypesTests.cs (2)
81using Control control = new(); 94using Control control = new();
System\Windows\Forms\UpDownBaseTests.cs (1)
1966yield return new object[] { borderStyle, rightToLeft, upDownAlign, new LayoutEventArgs(new Control(), "affectedProperty") };
System\Windows\Forms\UserControlTests.cs (14)
314using Control parent = new(); 362using Control parent = new(); 469_layoutEngine = new Control().LayoutEngine; 520using Control parent = new(); 1262using Control child1 = new(); 1263using Control grandchild1 = new(); 1266using Control grandchild2 = new(); 1488using Control child1 = new(); 1489using Control grandchild1 = new(); 1492using Control grandchild2 = new(); 1722using Control child1 = new(); 1723using Control child2 = new(); 1752using Control child1 = new(); 1753using Control child2 = new();
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (3)
356using Control childControl = new(); 383using Control childControl = new(); 394using Control childControl = new();
System\Windows\Forms\WebBrowserTests.cs (136)
161using Control parent = new(); 189using Control parent = new(); 228using Control parent = new(); 242using Control parent = new(); 254using Control parent = new(); 292using Control parent = new(); 328using Control parent = new(); 341using Control parent = new(); 353using Control parent = new(); 373using Control parent = new(); 398using Control parent = new(); 412using Control parent = new(); 440using Control parent = new(); 456using Control parent = new(); 478using Control parent = new(); 490using Control parent = new(); 511using Control parent = new(); 525using Control parent = new(); 546using Control parent = new(); 558using Control parent = new(); 570using Control parent = new(); 595using Control parent = new(); 607using Control parent = new(); 628using Control parent = new(); 642using Control parent = new(); 663using Control parent = new(); 675using Control parent = new(); 709using Control parent = new(); 732using Control parent = new(); 831using Control parent = new(); 843using Control parent = new(); 864using Control parent = new(); 881using Control parent = new(); 900using Control parent = new(); 912using Control parent = new(); 933using Control parent = new(); 947using Control parent = new(); 967using Control parent = new(); 979using Control parent = new(); 1000using Control parent = new(); 1014using Control parent = new(); 1033using Control parent = new(); 1045using Control parent = new(); 1066using Control parent = new(); 1109using Control parent = new(); 1123using Control parent = new(); 1142using Control parent = new(); 1154using Control parent = new(); 1175using Control parent = new(); 1189using Control parent = new(); 1201using Control parent = new(); 1239using Control parent = new(); 1292using Control parent = new(); 1419using Control parent = new(); 1438using Control parent = new() 1460using Control parent = new(); 1480using Control parent = new(); 1499using Control parent = new() 1521using Control parent = new(); 1596using Control parent = new(); 1610using Control parent = new(); 1629using Control parent = new(); 1641using Control parent = new(); 1662using Control parent = new(); 1676using Control parent = new(); 1688using Control parent = new(); 1726using Control parent = new(); 1760using Control parent = new(); 1773using Control parent = new(); 1811using Control parent = new(); 1847using Control parent = new(); 1861using Control parent = new(); 1880using Control parent = new(); 1892using Control parent = new(); 1913using Control parent = new(); 1927using Control parent = new(); 1946using Control parent = new(); 1958using Control parent = new(); 1970using Control parent = new(); 2065using Control parent = new(); 2096using Control parent = new(); 2108using Control parent = new(); 2120using Control parent = new(); 2278using Control parent = new(); 2358using Control parent = new(); 2385using Control parent = new(); 2443using Control parent = new(); 2463using Control parent = new(); 2487using Control parent = new(); 2574using Control parent = new(); 2677using Control parent = new(); 2721using Control parent = new(); 2866using Control parent = new(); 2887using Control parent = new(); 2967using Control parent = new(); 2989using Control parent = new(); 3004using Control parent = new(); 3082using Control parent = new(); 3104using Control parent = new(); 3119using Control parent = new(); 3131using Control parent = new(); 3153using Control parent = new(); 3168using Control parent = new(); 3180using Control parent = new(); 3192using Control parent = new(); 3281using Control parent = new(); 3304using Control parent = new(); 3399using Control parent = new(); 3422using Control parent = new(); 3470using Control parent = new(); 3486using Control parent = new(); 3604Control parent = new(); 3644using Control parent = new(); 3656using Control parent = new(); 3921using Control parent = new(); 3943using Control parent = new(); 3958using Control parent = new(); 4016using Control parent = new(); 4088using Control parent = new(); 4105using Control parent = new(); 4165using Control parent = new(); 4223using Control parent = new(); 4246using Control parent = new(); 4261using Control parent = new(); 4283using Control parent = new(); 4298using Control parent = new(); 4320using Control parent = new(); 4335using Control parent = new(); 4357using Control parent = new(); 4372using Control parent = new(); 4394using Control parent = new(); 4409using Control parent = new(); 4431using Control parent = new(); 4446using Control parent = new(); 4525using Control control = new(); 4599using Control control = new();
TextBoxBaseTests.cs (10)
287using Control parent = new(); 581using Control parent = new(); 2008using Control parent = new(); 2067using Control parent = new(); 3727using Control parent = new(); 3777using Control parent = new(); 5863using Control parent = new(); 6042using Control parent = new(); 6974using Control control = new(); 7055using Control control = new();
WebBrowserBaseTests.cs (2)
239using Control parent = new(); 814using Control parent = new()
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
145new(new Control(), "affectedProperty")
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
64: base()