885 writes to Parent
DesignSurface (14)
MainForm.cs (14)
154rb1.Parent = pnl; 155rb2.Parent = pnl; 156checkbox1.Parent = pnl; 157checkbox2.Parent = pnl; 158checkbox3.Parent = pnl; 170l1.Parent = sct.Panel1; 171l2.Parent = sct.Panel2; 225b3.Parent = gb; 393view.Parent = tabPage1; 396view.Parent = tabPage2; 399view.Parent = tabPage3; 402view.Parent = tabPage4; 405view.Parent = tabPage5; 408view.Parent = tabPage6;
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
187((Control)newComp).Parent = host.RootComponent as Control;
Microsoft.VisualStudio.LanguageServices (1)
LanguageService\AbstractLanguageService`2.VsCodeWindowManager.cs (1)
295_documentOutlineViewHost.Parent = null;
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (1)
403Parent = parent;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
212set => base.Parent = value;
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
249currentControl.Parent = dragTarget;
System\Windows\Forms\Design\DesignerFrame.cs (2)
74designerHolder.Parent = null; 441control.Parent = null;
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
284_miniToolStrip.Parent = ToolStrip; 2080ddi.DropDown.Parent = _toolStripAdornerWindowService.ToolStripAdornerWindowControl;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1113ddi.DropDown.Parent = _toolStripAdornerWindowService.ToolStripAdornerWindowControl;
System.Windows.Forms.Design.Tests (5)
SplitContainerDesignerTests.cs (1)
44control.Parent = splitContainer.Panel1;
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\ToolStripActionListTests.cs (1)
141_toolStrip.Parent = new Form();
System.Windows.Forms.Tests (850)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (22)
345Parent = parent, 360Parent = parent, 420Parent = parent, 425Parent = parent, 430Parent = parent, 445Parent = parent, 450Parent = parent, 455Parent = parent, 470Parent = parent, 475Parent = parent 479Parent = parent, 545Parent = parent, 561Parent = parent, 660Parent = parent, 665Parent = parent, 670Parent = parent, 686Parent = parent, 691Parent = parent, 696Parent = parent, 712Parent = parent, 717Parent = parent 721Parent = parent,
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
551dataGridView.Parent = form;
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
25Parent = form,
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
347using ListBox listBox = new() { Parent = form, Items = { "Item 1", "Item 2" } };
System\Windows\Forms\Application.ParkingWindowTests.cs (1)
49comboBox.Parent = null;
System\Windows\Forms\AxHostTests.cs (13)
351Parent = grandparent 355Parent = parent 363parent.Parent = null; 373Parent = parent 381control.Parent = null; 391Parent = parent 400parent.Parent = grandparent; 407parent.Parent = null; 1307Parent = parent 1324control.Parent = parent; 1353Parent = parent 1858Parent = parent, 2153Parent = parent,
System\Windows\Forms\ButtonBaseTests.cs (36)
1140Parent = parent, 1311Parent = parent, 1554Parent = parent 1721Parent = parent 1888Parent = parent, 1992Parent = parent, 2816Parent = value 2822control.Parent = value; 2850Parent = value 2856control.Parent = value; 2871Parent = oldParent 2874control.Parent = value; 2880control.Parent = value; 2892Parent = parent 2899control.Parent = parent; 2923control.Parent = value; 2931control.Parent = value; 2971control.Parent = value; 2979control.Parent = value; 3002control.Parent = parent; 3007control.Parent = parent; 3012control.Parent = null; 3018control.Parent = parent; 3027Assert.Throws<ArgumentException>(() => control.Parent = control); 3079Parent = parent 3174Parent = parent 3320Parent = parent 3436Parent = parent 3552Parent = parent, 3661Parent = parent, 3763Parent = parent 3860Parent = parent 3972Parent = parent, 4088Parent = parent, 7192Parent = parent 7294Parent = parent
System\Windows\Forms\ButtonTests.cs (16)
300Parent = parent 348Parent = parent 448Parent = parent 521Parent = parent 795Parent = parent 890Parent = parent 1937Parent = form 1941Parent = parent, 2019Parent = form 2023Parent = parent, 2926Parent = parent 3028Parent = parent 3121Parent = form 3125Parent = parent, 3199Parent = form 3203Parent = parent,
System\Windows\Forms\ControlTests.ControlCollection.cs (3)
1180Parent = parent 1192Parent = grandparent 1196Parent = parent
System\Windows\Forms\ControlTests.cs (2)
574Parent = parent 600Parent = parent
System\Windows\Forms\ControlTests.Handlers.cs (7)
2624Parent = parent 2685Parent = parent 3138Parent = parent 3983Parent = parent 4114Parent = parent 5581Parent = parent, 5668Parent = parent,
System\Windows\Forms\ControlTests.Methods.cs (78)
507Parent = parent 551Parent = parent 694Parent = parent 710Parent = parent 782Parent = parent 786Parent = control 790Parent = control 794Parent = child1 799Parent = otherParent 847Parent = parent 1024Parent = parent 1361Parent = parent 1414Parent = parent 1977control.Parent = form; 2021Parent = parent 2076Parent = parent 2146Parent = grandparent 2150Parent = parent 2163Parent = greatGrandparent 2167Parent = grandparent 2171Parent = parent 2184Parent = greatGrandparent 2188Parent = grandparent.Panel1 2201Parent = greatGrandparent 2206Parent = grandparent 2210Parent = parent 2223Parent = greatGrandparent 2228Parent = grandparent 2232Parent = parent 4320Parent = otherControlParent 4829Parent = parent 4864Parent = parent 5084Parent = parent 5129Parent = parent 5375Parent = parent 5487Parent = parent, 5552Parent = parent 5582control.Parent = parent; 5605Parent = parent 5630Parent = parent 5653Parent = parent 5678Parent = parent 5753Parent = parent 5810Parent = parent 6044Parent = parent 6101Parent = parent 6160Parent = parent 6225Parent = parent, 6252Parent = parent 6277Parent = parent 7318Parent = parent 7691Parent = parent 7948Parent = parent 8548Parent = parent 8805Parent = parent 9345Parent = parent 9643Parent = parent 10129Parent = parent 10602Parent = parent 10858Parent = parent 11248Parent = parent 11486Parent = parent 11734Parent = parent 11984Parent = parent 12193Parent = parent 12212Parent = parent 12244Parent = parent 12277Parent = parent 14096Parent = parent 14145Parent = parent 14207Parent = grandparent 14211Parent = parent 14252Parent = grandparent 14256Parent = parent 14295Parent = grandparent 14299Parent = parent 14340Parent = grandparent 14344Parent = parent
System\Windows\Forms\ControlTests.Properties.cs (70)
413Parent = parent 458Parent = grandparent 462Parent = parent 560Parent = parent 678Parent = grandparent 683Parent = parent 824Parent = parent, 949Parent = parent 1003Parent = parent 1110Parent = parent 2148Parent = parent 2163Parent = parent 2696Parent = parent 2907Parent = parent 3085Parent = parent 3120Parent = parent 3736Parent = parent 3756Parent = parent 3788Parent = parent 4186Parent = parent 4277Parent = parent 4805Parent = parent 4825Parent = parent 5973Parent = parent 6208Parent = parent 6743Parent = parent 6937Parent = parent 7222Parent = parent 7420Parent = parent 7730Parent = parent 7799Parent = parent 8103Parent = parent 8159Parent = parent 8312Parent = parent 8380Parent = parent 8747Parent = parent 8809Parent = parent 9055Parent = parent 9144Parent = parent 9442Parent = parent 9540Parent = parent 9687Parent = value 9693control.Parent = value; 9705Parent = oldParent 9708control.Parent = value; 9714control.Parent = value; 9726Parent = parent 9733control.Parent = parent; 9752control.Parent = value; 9760control.Parent = value; 9783control.Parent = parent; 9788control.Parent = parent; 9793control.Parent = null; 9799control.Parent = parent; 9808Assert.Throws<ArgumentException>(() => control.Parent = control); 9819Assert.Throws<ArgumentException>(() => control.Parent = child); 9830Assert.Throws<ArgumentException>(() => control.Parent = parent); 11372Parent = parent 11617Parent = parent 12177Parent = parent 12369Parent = parent 12570Parent = grandparent 12574Parent = parent 12588Parent = grandparent 12592Parent = parent 12702Parent = parent 12740Parent = parent, 12814Parent = parent 13392Parent = parent 13627Parent = parent
System\Windows\Forms\DataGridViewTests.cs (18)
119Parent = parent 261Parent = parent 827Parent = value 833control.Parent = value; 845Parent = oldParent 848control.Parent = value; 854control.Parent = value; 866Parent = parent 873control.Parent = parent; 892control.Parent = value; 899control.Parent = value; 921control.Parent = parent; 926control.Parent = parent; 931control.Parent = null; 937control.Parent = parent; 946Assert.Throws<ArgumentException>(() => control.Parent = control); 1036Parent = parent 1185Parent = parent
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (6)
1590Parent = parent 1647Parent = parent 1881Parent = parent 1938Parent = parent 1997Parent = parent 2062Parent = parent,
System\Windows\Forms\ErrorProviderTests.cs (7)
1130yield return new object[] { blinkStyle, new SubControl { Parent = new() }, error, error ?? string.Empty }; 1163control.Parent = newParent; 1166control.Parent = null; 1169control.Parent = originalParent; 1195control.Parent = newParent; 1198control.Parent = null; 1201control.Parent = originalParent;
System\Windows\Forms\FlowLayoutPanelTests.cs (3)
217Parent = control 228yield return new object[] { new Control { Parent = new() } }; 357Parent = parent
System\Windows\Forms\FlowLayoutSettingsTests.cs (1)
177Parent = parent
System\Windows\Forms\FormTests.cs (19)
936Parent = value 943control.Parent = value; 957Parent = oldParent 960control.Parent = value; 967control.Parent = value; 1081Parent = value 1084control.Parent = value; 1090control.Parent = value; 1103Parent = parent 1110control.Parent = parent; 1132control.Parent = value; 1141control.Parent = value; 1168control.Parent = parent; 1173control.Parent = parent; 1178control.Parent = null; 1184control.Parent = parent; 1196Assert.Throws<ArgumentException>(() => control.Parent = control); 1205Assert.Throws<ArgumentException>(() => control.Parent = parent); 1221Assert.Throws<ArgumentException>("value", () => control.Parent = parent);
System\Windows\Forms\GroupBoxTests.cs (9)
270Parent = parent 318Parent = parent 418Parent = parent 491Parent = parent 1222Parent = parent 1319Parent = parent 1985Parent = parent, 2033Parent = parent, 2049Parent = parent,
System\Windows\Forms\HtmlDocumentTests.cs (96)
21Parent = parent 53Parent = parent 85Parent = parent 109Parent = parent 139Parent = parent 159Parent = parent 179Parent = parent 196Parent = parent 213Parent = parent 238Parent = parent 270Parent = parent 302Parent = parent 332Parent = parent 362Parent = parent 379Parent = parent 396Parent = parent 421Parent = parent 438Parent = parent 473Parent = parent 488Parent = parent 503Parent = parent 525Parent = parent 540Parent = parent 556Parent = parent 578Parent = parent 593Parent = parent 607Parent = parent 631Parent = parent 665Parent = parent 679Parent = parent 694Parent = parent 718Parent = parent 750Parent = parent 782Parent = parent 804Parent = parent 835Parent = parent 855Parent = parent 871Parent = parent 891Parent = parent 907Parent = parent 939Parent = parent 971Parent = parent 993Parent = parent 1023Parent = parent 1043Parent = parent 1059Parent = parent 1084Parent = parent 1107Parent = parent 1131Parent = parent 1168Parent = parent 1182Parent = parent 1197Parent = parent 1219Parent = parent 1249Parent = parent 1270Parent = parent 1302Parent = parent 1334Parent = parent 1356Parent = parent 1386Parent = parent 1405Parent = parent 1467Parent = parent 1505Parent = parent 1523Parent = parent 1543Parent = parent 1560Parent = parent 1576Parent = parent 1604Parent = parent 1621Parent = parent 1638Parent = parent 1661Parent = parent 1679Parent = parent 1694Parent = parent 1713Parent = parent 1731Parent = parent 1745Parent = parent 1762Parent = parent 1787Parent = parent 1807Parent = parent 1821Parent = parent 1839Parent = parent 1878Parent = parent 1905Parent = parent 1922Parent = parent 1939Parent = parent 1957Parent = parent 1977Parent = parent 1998Parent = parent 2036Parent = parent 2074Parent = parent 2112Parent = parent 2150Parent = parent 2188Parent = parent 2226Parent = parent 2264Parent = parent 2302Parent = parent 2340Parent = parent
System\Windows\Forms\HtmlElementTests.cs (127)
21Parent = parent 41Parent = parent 58Parent = parent 77Parent = parent 92Parent = parent 107Parent = parent 123Parent = parent 142Parent = parent 159Parent = parent 181Parent = parent 199Parent = parent 215Parent = parent 237Parent = parent 276Parent = parent 291Parent = parent 309Parent = parent 324Parent = parent 342Parent = parent 367Parent = parent 398Parent = parent 413Parent = parent 432Parent = parent 458Parent = parent 489Parent = parent 504Parent = parent 519Parent = parent 534Parent = parent 553Parent = parent 579Parent = parent 610Parent = parent 625Parent = parent 640Parent = parent 655Parent = parent 671Parent = parent 697Parent = parent 730Parent = parent 745Parent = parent 763Parent = parent 781Parent = parent 799Parent = parent 815Parent = parent 830Parent = parent 854Parent = parent 885Parent = parent 916Parent = parent 931Parent = parent 946Parent = parent 965Parent = parent 991Parent = parent 1022Parent = parent 1037Parent = parent 1058Parent = parent 1076Parent = parent 1094Parent = parent 1118Parent = parent 1148Parent = parent 1166Parent = parent 1184Parent = parent 1208Parent = parent 1238Parent = parent 1257Parent = parent 1276Parent = parent 1305Parent = parent 1338Parent = parent 1356Parent = parent 1380Parent = parent 1410Parent = parent 1425Parent = parent 1457Parent = parent 1495Parent = parent 1512Parent = parent 1577Parent = parent 1618Parent = parent 1660Parent = parent 1699Parent = parent 1718Parent = parent 1738Parent = parent 1767Parent = parent 1785Parent = parent 1803Parent = parent 1825Parent = parent 1843Parent = parent 1859Parent = parent 1891Parent = parent 1911Parent = parent 1926Parent = parent 1951Parent = parent 1966Parent = parent 1989Parent = parent 2027Parent = parent 2071Parent = parent 2109Parent = parent 2153Parent = parent 2189Parent = parent 2233Parent = parent 2268Parent = parent 2312Parent = parent 2328Parent = parent 2344Parent = parent 2364Parent = parent 2383Parent = parent 2401Parent = parent 2422Parent = parent 2441Parent = parent 2466Parent = parent 2481Parent = parent 2498Parent = parent 2521Parent = parent 2545Parent = parent 2586Parent = parent 2627Parent = parent 2668Parent = parent 2709Parent = parent 2750Parent = parent 2791Parent = parent 2832Parent = parent 2873Parent = parent 2914Parent = parent 2955Parent = parent 2996Parent = parent 3037Parent = parent 3078Parent = parent 3119Parent = parent 3160Parent = parent 3201Parent = parent 3242Parent = parent 3283Parent = parent
System\Windows\Forms\HtmlWindowTests.cs (4)
18Parent = parent 34Parent = parent 50Parent = parent 71Parent = parent,
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (10)
500Parent = parent 575Parent = parent 719Parent = parent 802Parent = parent 954Parent = parent 1033Parent = parent 1195Parent = parent 1278Parent = parent 1430Parent = parent 1509Parent = parent
System\Windows\Forms\ListBoxTests.cs (1)
933Parent = parent
System\Windows\Forms\MdiClientTests.cs (7)
185Parent = parent 264Parent = parent 380Parent = parent, 425Parent = parent, 699Parent = parent 851Parent = parent 1013Parent = parent
System\Windows\Forms\MenuStripTests.cs (2)
700Parent = parent 738control.Parent = parent;
System\Windows\Forms\PanelTests.cs (4)
258Parent = parent 306Parent = parent 406Parent = parent 479Parent = parent
System\Windows\Forms\PictureBoxTests.cs (12)
1127Parent = value 1132control.Parent = value; 1143Parent = oldParent 1146control.Parent = value; 1151control.Parent = value; 1162Parent = parent 1168control.Parent = parent; 1188control.Parent = parent; 1193control.Parent = parent; 1198control.Parent = null; 1204control.Parent = parent; 1213Assert.Throws<ArgumentException>(() => control.Parent = control);
System\Windows\Forms\RichTextBoxTests.cs (8)
463Parent = parent 2134Parent = parent 2191Parent = parent 2966Parent = parent 3089Parent = parent 7103Parent = parent, 7331Parent = parent, 10613Parent = parent,
System\Windows\Forms\ScrollableControlTests.cs (2)
1684Parent = parent, 1828Parent = parent,
System\Windows\Forms\ScrollBarTests.cs (2)
3114vScrollBar.Parent = form; 3133hScrollBar.Parent = form;
System\Windows\Forms\SplitterTests.cs (14)
535Parent = parent 604Parent = parent 1147Parent = parent, 1202Parent = parent, 1208Parent = parent, 1247Parent = parent, 1252Parent = parent, 1319Parent = parent, 1366Parent = parent, 1371Parent = parent, 2014Parent = parent, 2019Parent = parent, 2115Parent = parent, 2120Parent = parent,
System\Windows\Forms\TableLayoutPanelTests.cs (6)
1594Parent = parent 1700Parent = parent 1809Parent = parent 1927Parent = parent 2036Parent = parent 2116extendee.Parent = control;
System\Windows\Forms\TabPageTests.cs (48)
411Parent = parent 476Parent = parent 578Parent = parent 594Parent = parent 637Parent = parent 1129Parent = parent, 1169Parent = parent, 1255Parent = parent 1321Parent = parent 1635Parent = parent 1699Parent = parent 1948Parent = parent 2157Parent = parent 2485Parent = value 2491control.Parent = value; 2503Parent = oldParent 2506control.Parent = value; 2512control.Parent = value; 2524Parent = parent 2531control.Parent = parent; 2550control.Parent = value; 2558control.Parent = value; 2581control.Parent = parent; 2586control.Parent = parent; 2591control.Parent = null; 2597control.Parent = parent; 2606Assert.Throws<ArgumentException>(() => control.Parent = control); 2615Assert.Throws<ArgumentException>(() => control.Parent = parent); 2804Parent = parent, 2840Parent = parent, 2892Parent = parent 2954Parent = parent 3176Parent = parent, 3212Parent = parent, 3266Parent = parent 3330Parent = parent 3576Parent = parent, 3650Parent = parent 3816Parent = grandparent 3820Parent = parent 3833Parent = grandparent 3837Parent = parent 3883Parent = parent 3935Parent = parent 4058Parent = parent, 4197Parent = parent, 4393Parent = parent 4710Parent = parent
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
497Parent = parent 558Parent = parent 640Parent = parent,
System\Windows\Forms\ToolStripControlHostTests.cs (1)
3172Parent = controlParent
System\Windows\Forms\ToolStripDropDownTests.cs (6)
705Parent = parent 1330Parent = parent, 1362Parent = parent, 1491Parent = parent 1512Parent = parent 2914Parent = parent
System\Windows\Forms\ToolStripTests.cs (18)
915Parent = parent 973Parent = parent 1090Parent = parent 1105Parent = parent 1407Parent = parent 1428Parent = parent 1880Parent = parent, 1911Parent = parent, 2016Parent = parent, 2134Parent = parent, 2459Parent = parent 2565Parent = parent 2922Parent = parent, 2986Parent = parent, 6025Parent = parent, 6167Parent = parent, 6922Parent = parent 6960control.Parent = parent;
System\Windows\Forms\UserControlTests.cs (5)
315Parent = parent 373Parent = parent, 421Parent = parent 521Parent = parent 594Parent = parent
System\Windows\Forms\WebBrowserTests.cs (147)
162Parent = parent 190Parent = parent 229Parent = parent 243Parent = parent 255Parent = parent 293Parent = parent 329Parent = parent 342Parent = parent 354Parent = parent 374Parent = parent 399Parent = parent 413Parent = parent 441Parent = parent 457Parent = parent 479Parent = parent 491Parent = parent 512Parent = parent 526Parent = parent 547Parent = parent 559Parent = parent 571Parent = parent 596Parent = parent 608Parent = parent 629Parent = parent 643Parent = parent 664Parent = parent 676Parent = parent 710Parent = parent 733Parent = parent 832Parent = parent 844Parent = parent 865Parent = parent 882Parent = parent 901Parent = parent 913Parent = parent 934Parent = parent 948Parent = parent 968Parent = parent 980Parent = parent 1001Parent = parent 1015Parent = parent 1034Parent = parent 1046Parent = parent 1067Parent = parent 1110Parent = parent 1124Parent = parent 1143Parent = parent 1155Parent = parent 1176Parent = parent 1190Parent = parent 1202Parent = parent 1240Parent = parent 1293Parent = parent, 1403Parent = parent 1409control.Parent = parent; 1420Parent = parent 1427control.Parent = null; 1442Parent = parent 1449control.Parent = null; 1462Parent = parent 1469control.Parent = null; 1482control.Parent = parent; 1488control.Parent = null; 1504control.Parent = parent; 1510control.Parent = null; 1525Parent = parent 1532control.Parent = null; 1553control.Parent = parent; 1558control.Parent = parent; 1563control.Parent = null; 1569control.Parent = parent; 1578Assert.Throws<ArgumentException>(() => control.Parent = control); 1597Parent = parent 1611Parent = parent 1630Parent = parent 1642Parent = parent 1663Parent = parent 1677Parent = parent 1689Parent = parent 1727Parent = parent 1761Parent = parent 1774Parent = parent 1812Parent = parent 1848Parent = parent 1862Parent = parent 1881Parent = parent 1893Parent = parent 1914Parent = parent 1928Parent = parent 1947Parent = parent 1959Parent = parent 1971Parent = parent 2066Parent = parent 2097Parent = parent 2109Parent = parent 2121Parent = parent 2279Parent = parent 2359Parent = parent 2387Parent = parent 2444Parent = parent 2465Parent = parent 2489Parent = parent 2576Parent = parent 2679Parent = parent 2723Parent = parent 2867Parent = parent 2888Parent = parent 2968Parent = parent 2990Parent = parent 3005Parent = parent 3083Parent = parent 3105Parent = parent 3120Parent = parent 3132Parent = parent 3154Parent = parent 3169Parent = parent 3181Parent = parent 3193Parent = parent 3282Parent = parent 3305Parent = parent 3400Parent = parent 3423Parent = parent 3471Parent = parent 3487Parent = parent 3605Parent = parent, 3645Parent = parent 3657Parent = parent 3922Parent = parent 3944Parent = parent 3959Parent = parent 4017Parent = parent 4089Parent = parent 4106Parent = parent 4166Parent = parent 4224Parent = parent 4247Parent = parent 4262Parent = parent 4284Parent = parent 4299Parent = parent 4321Parent = parent 4336Parent = parent 4358Parent = parent 4373Parent = parent 4395Parent = parent 4410Parent = parent 4432Parent = parent 4447Parent = parent
TextBoxBaseTests.cs (10)
288Parent = parent 583Parent = parent 2009Parent = parent 2068Parent = parent, 3728Parent = parent 3778Parent = parent, 5864Parent = parent, 5918control.Parent = parent; 6043Parent = parent, 6075Parent = parent,
WebBrowserBaseTests.cs (3)
240Parent = parent 818Parent = parent 844Parent = parent
System.Windows.Forms.UI.IntegrationTests (5)
ListBoxAccesibleObjectTests.cs (2)
36using ListBox listBox = new() { Parent = form, Items = { "Item 1", "Item 2" } }; 50using ListBox listBox = new() { Parent = form, Items = { "Item 1", "Item 2" } };
ListBoxItemAccessibleObjestTests.cs (3)
15using ListBox listBox = new() { Parent = form }; 38using ListBox listBoxDoubleClick = new() { Items = { "Item 1" }, Parent = formDoubleClick }; 53using ListBox listBox = new() { Parent = form };
WinFormsControlsTest (1)
TaskDialogSamples.cs (1)
26Parent = this,
919 references to Parent
PresentationUI (3)
MS\Internal\Documents\DialogDivider.cs (3)
51if (Parent != null) 54base.SetBoundsCore(Parent.Location.X, y, Parent.Size.Width, 1, specified);
System.Windows.Forms (38)
System\Windows\Forms\ActiveX\AxHost.cs (3)
1937/// The <see cref="ContainingControl"/> property value can be different from the <see cref="Control.Parent"/> 1941/// property value of the ActiveX control is the <see cref="Form"/>, and the <see cref="Control.Parent"/> 2137control = control.Parent;
System\Windows\Forms\Control.cs (6)
2349return (control.Site is not null && control.Site.DesignMode) || control.Parent is null ? 2350control.Site : GetSitedParentSite(control.Parent); 5599string.Format(SR.ParentPropertyNotSetInGetNextControl, nameof(Parent), ctl)); 6331Control? parentControl = control.Parent; 6334parentControl = parentControl.Parent; 6940if (Equals(Properties.GetValueOrDefault<object>(s_dataContextProperty), Parent?.DataContext))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAccessibleObject.cs (1)
28_owningPropertyGrid = owningDropDownButton.Parent as PropertyGridView;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (2)
313Control? parent = _detailsButton.Parent; 317parent = parent.Parent;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
572if (_createNewLinkLabel is not null && _createNewLinkLabel.Parent == this)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
2406if (Parent?.IsAccessibilityObjectCreated == true) 2408Parent.AccessibilityObject.InternalRaiseAutomationNotification(
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (3)
147if (string.IsNullOrEmpty(toolStripPanelName) && toolStripPanel.Parent is ToolStripContainer && !string.IsNullOrEmpty(toolStripPanel.Parent.Name)) 149toolStripPanelName = $"{toolStripPanel.Parent.Name}.{toolStripPanel.Dock}";
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.SettingsStub.cs (4)
26if (toolStrip.Parent is ToolStripPanel parentPanel) 32else if (parentPanel.Parent is ToolStripContainer && !string.IsNullOrEmpty(parentPanel.Parent.Name)) 35ToolStripPanelName = $"{parentPanel.Parent.Name}.{parentPanel.Dock}";
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (2)
104(state & STATE_HOT) != 0 ? (HGDIOBJ)Parent!.FontHandle : default); 106GC.KeepAlive(Parent);
System\Windows\Forms\Form.AccessibleObject.cs (1)
28: owner.Parent?.RectangleToScreen(owner.Bounds) ?? owner.Bounds;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
478if (_activeControl?.Parent is not null && !_activeControl.Parent.IsTopMdiWindowClosing) 667Control? parentControl = Parent; 675parentControl = parentControl.Parent;
System\Windows\Forms\Layout\DefaultLayout.cs (3)
692if (!control._childControlsNeedAnchorLayout || control.Parent?._childControlsNeedAnchorLayout == true) 835Control? parent = control.Parent; 877Rectangle displayRectangle = control.Parent!.DisplayRectangle;
System\Windows\Forms\Panels\FlowLayoutPanel.cs (1)
53bool IExtenderProvider.CanExtend(object obj) => obj is Control control && control.Parent == this;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
211get => base.Parent;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
177obj is Control control && control.Parent == this;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
596if (SystemInformation.HighContrast && Parent is Control parent)
System\Windows\Forms\Printing\PrintPreviewControl.ScrollBarAccessibleObject.cs (2)
17this.TryGetOwnerAs(out ScrollBar? scrollBar) && scrollBar.Parent is PrintPreviewControl printPreviewControl 25if (!this.TryGetOwnerAs(out ScrollBar? scrollBar) || scrollBar.Parent is not PrintPreviewControl printPreviewControl)
System.Windows.Forms.Design (210)
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (2)
23if (_grid is null && Parent is not null) 25foreach (Control c in Parent.Controls)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (4)
179if (Parent is not null && Bounds.Contains(Parent.PointToClient(Cursor.Position)) && !_dropDownRectangle.Contains(mevent.Location)) 282if (Parent is not null && Bounds.Contains(Parent.PointToClient(Cursor.Position)))
System\ComponentModel\Design\ToolStripContainerActionList.cs (4)
101&& _toolStripContainer.Parent == root 116if (_designerHost.RootComponent is Control root && _toolStripContainer.Parent is null) 136|| _toolStripContainer.Parent != root 172Control? oldParent = control.Parent;
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
89Control? parentControl = selectedControl.Parent; 103parentControl = parentControl.Parent;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (4)
267if (c.Parent is null) 273PInvokeCore.MapWindowPoints(c.Parent, _adornerWindow, ref pt); 274if (c.Parent.IsMirrored) 296if (c.Parent is null)
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (4)
215Control requiredParent = _containerControl.Parent; 221if ((comp is Control ctrl) && (ctrl.Parent is not null)) 223if (!ctrl.Parent.Equals(requiredParent)) 250DropSourceBehavior dsb = new(dragControls, _containerControl.Parent, controlOrigin);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (7)
478control.Parent is null || // control must have a parent. 508(targetControl.Parent is not null) && 509(targetControl.Parent.Equals(control))) 546if (rootControl.Parent is not null && rootControl.Parent.IsMirrored) 632Control? currentParent = child.Parent; 640currentParent = currentParent.Parent;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (7)
253else if (!localDrag && currentControl.Parent.Equals(dragSource)) 272if (currentControl.Parent is ScrollableControl p) 448initialDropPoint = ((Control)_dragComponents[_primaryComponentIndex].dragComponent).Parent.PointToClient(initialDropPoint); 453if (((Control)(_dragComponents[_primaryComponentIndex].dragComponent)).Parent.IsMirrored) 888if (parentControl.Parent is not null && parentControl.Parent.IsMirrored) 936Control primaryParent = primaryControl?.Parent;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (13)
264if (_resizeComponents[0].resizeControl is Control control && control.Parent is not null) 266PropertyDescriptor snapProp = TypeDescriptor.GetProperties(control.Parent)["SnapToGrid"]; 267if (snapProp is not null && (bool)snapProp.GetValue(control.Parent)) 269PropertyDescriptor gridProp = TypeDescriptor.GetProperties(control.Parent)["GridSize"]; 273_parentGridSize = (Size)gridProp.GetValue(control.Parent); 620if ((_didSnap) && (targetControl.Parent is not null)) 622controlBounds.Location = _behaviorService.MapAdornerWindowPoint(targetControl.Parent.Handle, controlBounds.Location); 623if (targetControl.Parent.IsMirrored) 632Color backColor = targetControl.Parent is not null ? targetControl.Parent.BackColor : Color.Empty; 654if (control.Parent is not null && control.Parent.IsMirrored) 837Control parent = control.Parent;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (7)
104if (_relatedControl.Parent is not null) 106if (currentSelection != _relatedControl.Parent) 108selectionService?.SetSelectedComponents(new object[] { _relatedControl.Parent }, SelectionTypes.Replace); 112Control parent = _relatedControl.Parent; 165Control? oldParent = control.Parent; 230if (dragComponent is ToolStrip tool && tool.Parent != _relatedControl) 237if (expandPanel && _relatedControl.Parent is { } root)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (2)
68ToolStripContainer? parent = _relatedPanel?.Parent as ToolStripContainer; 72_baseParent = parent.Parent;
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (3)
66Control oldParent = toolStrip.Parent; 124if (c.Parent is ToolStripPanel) 126dock = c.Parent.Dock;
System\Windows\Forms\Design\CommandSet.cs (23)
834if (primaryControl.Parent!.IsMirrored) 860if (host.GetDesigner(primaryControl.Parent!) is ParentControlDesigner parentDesigner) 875if (primaryControl.Parent!.IsMirrored) 900if (primaryControl is not null && primaryControl.Parent!.IsMirrored) 908if (primaryControl is not null && primaryControl.Parent!.IsMirrored) 1300viewParent ??= comp.Parent; 1495Control? parent = c.Parent; 1525commonParent = selectedControl.Parent; 1527else if (selectedControl.Parent != commonParent && !commonParent.Contains(selectedControl)) 1530commonParent = selectedControl == commonParent || selectedControl.Contains(commonParent) ? selectedControl.Parent : null; 1618Control? parent = c.Parent; 1651commonParent = control.Parent; 1673if (selectedControl.Parent != controlCommonParent && !controlCommonParent.Contains(selectedControl)) 1678commonParent = selectedControl.Parent; 1686parent = parent.Parent; 1794parent = parent.Parent; 2158UpdatePasteTabIndex(c, c.Parent); 3244Control? parentControl = controls[0].Parent; 3518return c1.Parent == c2.Parent && c1.Parent is not null ? c1.Parent.Controls.GetChildIndex(c1) - c1.Parent.Controls.GetChildIndex(c2) : 1;
System\Windows\Forms\Design\ComponentTray.cs (1)
1572if (c.Parent == this)
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
278Control? parent = control.Parent;
System\Windows\Forms\Design\ControlCommandSet.cs (24)
316for (Control parent = component.Parent; parent is not null; parent = parent.Parent) 332okParent = component.Parent; 381Control c = ctrl.Parent; 398c = c.Parent; 467bool fRTL = (primaryControl.Parent is not null && primaryControl.Parent.IsMirrored); 672if (primaryControl.Parent.IsMirrored) 694ParentControlDesigner parentDesigner = host.GetDesigner(primaryControl.Parent) as ParentControlDesigner; 712if (primaryControl.Parent.IsMirrored) 738if (primaryControl.Parent.IsMirrored) 747if (primaryControl.Parent.IsMirrored) 1036Control parent = control.Parent; 1406next = current.Parent; 1533Control p = ctl.Parent; 1592ctl = ctl.Parent; 1602Control p = ctl.Parent; 1732if (cX.Parent == cY.Parent) 1734Control parent = cX.Parent; 1748else if (cX.Parent is null || cX.Contains(cY)) 1752else if (cY.Parent is null || cY.Contains(cX)) 1759return PARAM.ToInt(cX.Parent.Handle) - PARAM.ToInt(cY.Parent.Handle);
System\Windows\Forms\Design\ControlDesigner.cs (23)
86if (Control.Parent is ScrollableControl parent) 96if (Control.Parent is ScrollableControl parent) 178Component is Control c && c.Parent is not null ? c.Parent : base.ParentComponent; 236if (Control.Parent is not null && Control.Parent.IsMirrored) 288if (Control.Parent is { } parent) 296if (Control.IsMirrored != Control.Parent?.IsMirrored) 686Control? parent = Control.Parent; 1420requiredParent = control.Parent; 1422else if (!requiredParent.Equals(control.Parent)) 1438DropSourceBehavior dsb = new(dragControls, Control.Parent, _mouseDragLast); 1459parent = parent.Parent; 1488parent = parent.Parent; 1517parent = parent.Parent; 1907if (_toolPassThrough && Control.Parent is not null) 1910Control.Parent, 1956if (_toolPassThrough && Control.Parent is not null) 1959Control.Parent, 2003if (_toolPassThrough && Control.Parent is not null) 2006Control.Parent, 2115if (Control is not null && Control.Size != Control.ClientSize && Control.Parent is { } parent) 2384pt = Control.Parent!.PointToClient(pt);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2048if (Parent is not DesignBindingPicker picker)
System\Windows\Forms\Design\DesignerUtils.cs (1)
768if (comp is Control { Parent: null })
System\Windows\Forms\Design\DocumentDesigner.cs (2)
639c = c.Parent; 861Control rootParent = root.Parent;
System\Windows\Forms\Design\DocumentDesigner.DocumentInheritanceService.cs (1)
74child = child.Parent;
System\Windows\Forms\Design\FormatControl.cs (2)
422for (Control? ctl = Parent; ctl is not null; ctl = ctl.Parent)
System\Windows\Forms\Design\FormatStringDialog.cs (1)
104control = control.Parent;
System\Windows\Forms\Design\MonthCalendarDesigner.cs (2)
24if (Control.Parent is null || !Control.Parent.IsMirrored)
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (2)
102if (component is Control { Parent: null } childControl && childControl != parentControl) 111if (component is Control { Parent: null } childControl and not Form { TopLevel: true }) // Don't add top-level forms
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
254if (c.Parent is null)
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
1056if (c.Parent is null || !compList.Contains(c.Parent))
System\Windows\Forms\Design\ParentControlDesigner.cs (11)
577ScrollableControl p = newChild.Parent as ScrollableControl; 650if (children[i].Parent != parent) 998Control parent = Control.Parent; 1075Control parent = Control.Parent; 1324if (comp is not null && comp.Parent is not null && comp.Parent == Control) 1555if (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly && draggedControl.Parent != Control) 2153Control oldParent = control.Parent; 2401if (c.Parent != parent) 2407if (c.Parent is not null) 2409Control cParent = c.Parent;
System\Windows\Forms\Design\SelectionUIHandler.cs (4)
98Control? parent = controls[i].Parent; 117Control? parent = controls[i].Parent; 274Control? parent = controls[i].Parent; 521Control? parent = controls[i].Parent;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (2)
139if (_control is not null && _control.Parent is not null) 141Control parent = _control.Parent;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
261public override SelectionRules SelectionRules => Control.Parent is SplitContainer ? SelectionRules.Locked : SelectionRules.None;
System\Windows\Forms\Design\TabControlDesigner.cs (4)
198if (page is not null && page.Parent == parent) 203c = c.Parent; 419if (page is not null && page.Parent == tabControl) 446if (page is not null && page.Parent == tabControl && page == tabControl.SelectedTab)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (5)
1433if (changingControl is not null && changingControl.Parent == Component && 1454if (c is not null && c.Parent is not null && c.Parent.Equals(Control) && e.Member is not null && (e.Member.Name == "Row" || e.Member.Name == "Column")) 1459if (c is not null && c.Parent == Component && 1480if (c is not null && c.Parent == Table)
System\Windows\Forms\Design\TabOrder.cs (5)
213if (_ctlHover.Parent is Control hoverParent) 341if (control is null || control.Parent is not Control parent) 379Control? parent = child.Parent; 397parent = parent.Parent; 442for (Control? c = control; c is not null; c = c.Parent)
System\Windows\Forms\Design\TabPageDesigner.cs (1)
21if (ctl is not null && ctl.Parent is TabControl)
System\Windows\Forms\Design\ToolStripActionList.cs (1)
168if (_toolStrip.Parent is not ToolStripPanel)
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (2)
105if (c.Parent is null) 111PInvokeCore.MapWindowPoints(c.Parent, _toolStripAdornerWindow, ref pt);
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (3)
210while (control.Parent is not null) 212if (control.Parent is ToolStripContainer parent) 217control = control.Parent;
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
59if (panel is not null && panel.Parent is ToolStripContainer)
System\Windows\Forms\Design\ToolStripDesigner.cs (6)
192internal override bool ControlSupportsSnaplines => ToolStrip.Parent is not ToolStripPanel; 1321Control parent = ToolStrip.Parent; 2311ToolStrip.Parent.Visible = _currentVisible; 2361if (ToolStrip.Parent is ToolStripPanel && !ToolStrip.Parent.Visible) 2364ToolStrip.Parent.Visible = true;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
648Control parent = _designMenu.Parent;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
297Control parentControl = selectedControl.Parent;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (4)
328Control p = ctl.Parent; 374ctl = ctl.Parent; 384Control p = ctl.Parent; 1714next = current.Parent;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (8)
93get => Control.Parent is ToolStripContainer && (base.InheritanceAttribute == InheritanceAttribute.Inherited) 118=> Control.Parent is ToolStripContainer 153=> Control.Parent is not ToolStripContainer; 176if (Control.Parent is ToolStripContainer { ContentPanel: { } contentPanel } 312ToolStripContainer? parent = Control.Parent as ToolStripContainer; 416if (Control.Parent is ToolStripContainer) 484if (Control.Parent is ToolStripContainer) 537if (Control.Parent is ToolStripContainer)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
862_miniToolStrip.Parent?.SuspendLayout(); 923_miniToolStrip.Parent?.ResumeLayout(); 939_miniToolStrip.Parent?.SuspendLayout(); 966_miniToolStrip.Parent?.ResumeLayout();
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ByteViewerTests.cs (1)
101Assert.Null(control.Parent);
System\Windows\Forms\Design\FormatStringDialogTests.cs (1)
95control = control.Parent;
System.Windows.Forms.Tests (655)
System\Windows\Forms\AxHostTests.cs (2)
94Assert.Null(control.Parent); 188Assert.Null(control.Parent);
System\Windows\Forms\ButtonBaseTests.cs (42)
91Assert.Null(control.Parent); 2818Assert.Same(value, control.Parent); 2823Assert.Same(value, control.Parent); 2852Assert.Same(value, control.Parent); 2857Assert.Same(value, control.Parent); 2875Assert.Same(value, control.Parent); 2881Assert.Same(value, control.Parent); 2894Assert.Same(parent, control.Parent); 2900Assert.Same(parent, control.Parent); 2924Assert.Same(value, control.Parent); 2932Assert.Same(value, control.Parent); 2972Assert.Same(value, control.Parent); 2980Assert.Same(value, control.Parent); 3003Assert.Same(parent, control.Parent); 3008Assert.Same(parent, control.Parent); 3013Assert.Null(control.Parent); 3019Assert.Same(parent, control.Parent); 3028Assert.Null(control.Parent); 4561Assert.Null(control.Parent); 4576Assert.Null(control.Parent); 4587Assert.Null(control.Parent); 4613Assert.Null(control.Parent); 4628Assert.Null(control.Parent); 4639Assert.Null(control.Parent); 4668Assert.Null(control.Parent); 4683Assert.Null(control.Parent); 4694Assert.Null(control.Parent); 4716Assert.Null(control.Parent); 4731Assert.Null(control.Parent); 4742Assert.Null(control.Parent); 4768Assert.Null(control.Parent); 4783Assert.Null(control.Parent); 4794Assert.Null(control.Parent); 4823Assert.Null(control.Parent); 4838Assert.Null(control.Parent); 4849Assert.Null(control.Parent); 4875Assert.Null(control.Parent); 4886Assert.Null(control.Parent); 4916Assert.Null(control.Parent); 4927Assert.Null(control.Parent); 4960Assert.Null(control.Parent); 4971Assert.Null(control.Parent);
System\Windows\Forms\ButtonTests.cs (1)
94Assert.Null(control.Parent);
System\Windows\Forms\CheckBoxTests.cs (1)
95Assert.Null(control.Parent);
System\Windows\Forms\ComboBoxTests.cs (1)
105Assert.Null(control.Parent);
System\Windows\Forms\ContainerControlTests.cs (1)
99Assert.Null(control.Parent);
System\Windows\Forms\ControlTests.ControlCollection.cs (108)
57Assert.Same(owner, control1.Parent); 68Assert.Same(owner, control1.Parent); 70Assert.Same(owner, control2.Parent); 83Assert.Same(owner, control1.Parent); 85Assert.Same(owner, control2.Parent); 133Assert.Same(owner, control1.Parent); 144Assert.Same(owner, control1.Parent); 146Assert.Same(owner, control2.Parent); 160Assert.Same(owner, control1.Parent); 162Assert.Same(owner, control2.Parent); 208Assert.Same(owner2, control.Parent); 250Assert.Same(owner, control.Parent); 262Assert.Same(owner, control.Parent); 290Assert.Same(owner, control1.Parent); 300Assert.Same(owner, control1.Parent); 303Assert.Same(owner, control2.Parent); 314Assert.Same(owner, control1.Parent); 317Assert.Same(owner, control2.Parent); 320Assert.Same(owner, control3.Parent); 345Assert.Same(owner, control.Parent); 374Assert.Same(owner, control.Parent); 410Assert.Same(owner, control.Parent); 450Assert.Same(owner, control.Parent); 511Assert.Same(owner, child1.Parent); 519Assert.Same(owner, child1.Parent); 529Assert.Same(owner, child2.Parent); 565Assert.Same(owner, control.Parent); 609Assert.Same(owner, control.Parent); 754Assert.Same(owner, control.Parent); 913Assert.Same(owner, control.Parent); 990Assert.Same(owner, control.Parent); 1070Assert.Same(owner, control.Parent); 1231Assert.Same(owner, child1.Parent); 1232Assert.Same(owner, child2.Parent); 1233Assert.Same(owner, child3.Parent); 1245Assert.Same(owner, child1.Parent); 1246Assert.Same(owner, child2.Parent); 1247Assert.Same(owner, child3.Parent); 1258Assert.Same(owner, child1.Parent); 1259Assert.Same(owner, child2.Parent); 1260Assert.Same(owner, child3.Parent); 1308Assert.Null(child1.Parent); 1309Assert.Null(child2.Parent); 1310Assert.Null(child3.Parent); 1321Assert.Null(child1.Parent); 1322Assert.Null(child2.Parent); 1323Assert.Null(child3.Parent); 1360Assert.Same(owner, child1.Parent); 1361Assert.Same(owner, child2.Parent); 1362Assert.Same(owner, child2.Parent); 1939Assert.Null(child1.Parent); 1940Assert.Same(owner, child2.Parent); 1949Assert.Null(child1.Parent); 1950Assert.Same(owner, child2.Parent); 1959Assert.Null(child1.Parent); 1960Assert.Same(owner, child2.Parent); 2003Assert.Null(child1.Parent); 2004Assert.Same(owner, child2.Parent); 2014Assert.Null(child1.Parent); 2015Assert.Same(owner, child2.Parent); 2025Assert.Null(child1.Parent); 2026Assert.Same(owner, child2.Parent); 2073Assert.Null(child1.Parent); 2074Assert.Same(owner, child2.Parent); 2086Assert.Null(child1.Parent); 2087Assert.Same(owner, child2.Parent); 2099Assert.Null(child1.Parent); 2100Assert.Same(owner, child2.Parent); 2155Assert.Null(child1.Parent); 2156Assert.Same(owner, child2.Parent); 2171Assert.Null(child1.Parent); 2172Assert.Same(owner, child2.Parent); 2187Assert.Null(child1.Parent); 2188Assert.Same(owner, child2.Parent); 2223Assert.Same(owner1, control1.Parent); 2224Assert.Same(owner2, control2.Parent); 2230Assert.Same(owner1, control1.Parent); 2231Assert.Same(owner2, control2.Parent); 2262Assert.Null(control.Parent); 2309Assert.Null(control.Parent); 2453Assert.Null(control.Parent); 2586Assert.Null(control.Parent); 2659Assert.Null(control.Parent); 2737Assert.Null(control.Parent); 2820Assert.Null(child1.Parent); 2827Assert.Null(child1.Parent); 2836Assert.Null(child2.Parent); 2873Assert.Same(owner, child1.Parent); 2874Assert.Null(child2.Parent); 2884Assert.Null(child1.Parent); 2885Assert.Null(child2.Parent); 2967Assert.Same(owner, child1.Parent); 2968Assert.Null(child2.Parent); 2969Assert.Same(owner, child3.Parent); 2980Assert.Same(owner, child1.Parent); 2981Assert.Null(child2.Parent); 2982Assert.Null(child3.Parent); 3456Assert.Same(owner, control1.Parent); 3468Assert.Same(owner, control1.Parent); 3470Assert.Same(owner, control2.Parent); 3484Assert.Same(owner, control1.Parent); 3486Assert.Same(owner, control2.Parent); 3540Assert.Null(child1.Parent); 3541Assert.Same(owner, child2.Parent); 3550Assert.Null(child1.Parent); 3551Assert.Same(owner, child2.Parent); 3560Assert.Null(child1.Parent); 3561Assert.Same(owner, child2.Parent);
System\Windows\Forms\ControlTests.cs (5)
77Assert.Null(control.Parent); 166Assert.Null(control.Parent); 262Assert.Null(control.Parent); 358Assert.Same(parent, control.Parent); 454Assert.Same(parent, control.Parent);
System\Windows\Forms\ControlTests.Internals.cs (1)
211Assert.Equal(parent, control.Parent);
System\Windows\Forms\ControlTests.Methods.cs (53)
854Assert.Same(parent, control.Parent); 978Assert.Null(control.Parent); 992Assert.Null(control.Parent); 1002Assert.Null(control.Parent); 1029Assert.Null(control.Parent); 1043Assert.Null(control.Parent); 1054Assert.Null(control.Parent); 1083Assert.Null(control.Parent); 1101Assert.Null(control.Parent); 1104Assert.Null(child1.Parent); 1105Assert.Null(child2.Parent); 1122Assert.Null(control.Parent); 1125Assert.Null(child1.Parent); 1126Assert.Null(child2.Parent); 1156Assert.Null(control.Parent); 1170Assert.Null(control.Parent); 1180Assert.Null(control.Parent); 1211Assert.Null(control.Parent); 1225Assert.Null(control.Parent); 1239Assert.Null(control.Parent); 1280Assert.Null(control.Parent); 1294Assert.Null(control.Parent); 1304Assert.Null(control.Parent); 1329Assert.Null(control.Parent); 1339Assert.Null(control.Parent); 1366Assert.Null(control.Parent); 1380Assert.Null(control.Parent); 1391Assert.Null(control.Parent); 1423Assert.Same(parent, control.Parent); 1434Assert.Same(parent, control.Parent); 1463Assert.Null(control.Parent); 1481Assert.Null(control.Parent); 1484Assert.Null(child1.Parent); 1485Assert.Null(child2.Parent); 1502Assert.Null(control.Parent); 1505Assert.Null(child1.Parent); 1506Assert.Null(child2.Parent); 1549Assert.Null(control.Parent); 1552Assert.Same(control, child1.Parent); 1553Assert.Same(control, child2.Parent); 1570Assert.Null(control.Parent); 1573Assert.Same(control, child1.Parent); 1574Assert.Same(control, child2.Parent); 1604Assert.Null(control.Parent); 1618Assert.Null(control.Parent); 1628Assert.Null(control.Parent); 1656Assert.Null(control.Parent); 1666Assert.Null(control.Parent); 1697Assert.Null(control.Parent); 1711Assert.Null(control.Parent); 1725Assert.Null(control.Parent); 1764Assert.Null(control.Parent); 1778Assert.Null(control.Parent);
System\Windows\Forms\ControlTests.Properties.cs (15)
9689Assert.Same(value, control.Parent); 9694Assert.Same(value, control.Parent); 9709Assert.Same(value, control.Parent); 9715Assert.Same(value, control.Parent); 9728Assert.Same(parent, control.Parent); 9734Assert.Same(parent, control.Parent); 9753Assert.Same(value, control.Parent); 9761Assert.Same(value, control.Parent); 9784Assert.Same(parent, control.Parent); 9789Assert.Same(parent, control.Parent); 9794Assert.Null(control.Parent); 9800Assert.Same(parent, control.Parent); 9809Assert.Null(control.Parent); 9820Assert.Null(control.Parent); 9831Assert.Null(control.Parent);
System\Windows\Forms\DataGridViewTests.cs (13)
829Assert.Same(value, control.Parent); 834Assert.Same(value, control.Parent); 849Assert.Same(value, control.Parent); 855Assert.Same(value, control.Parent); 868Assert.Same(parent, control.Parent); 874Assert.Same(parent, control.Parent); 893Assert.Same(value, control.Parent); 900Assert.Same(value, control.Parent); 922Assert.Same(parent, control.Parent); 927Assert.Same(parent, control.Parent); 932Assert.Null(control.Parent); 938Assert.Same(parent, control.Parent); 947Assert.Null(control.Parent);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
96Assert.Null(control.Parent);
System\Windows\Forms\DateTimePickerTests.cs (1)
96Assert.Null(control.Parent);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
129Assert.Null(control.Parent);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
101Assert.Null(control.Parent);
System\Windows\Forms\DomainUpDownTests.cs (1)
122_sub.Parent.Should().BeNull();
System\Windows\Forms\ErrorProviderTests.cs (6)
1164Assert.Same(newParent, control.Parent); 1167Assert.Null(control.Parent); 1170Assert.Same(originalParent, control.Parent); 1196Assert.Same(newParent, control.Parent); 1199Assert.Null(control.Parent); 1202Assert.Same(originalParent, control.Parent);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
93Assert.Null(control.Parent);
System\Windows\Forms\FormTests.cs (18)
131Assert.Null(control.Parent); 938Assert.Same(value, control.Parent); 944Assert.Same(value, control.Parent); 961Assert.Same(value, control.Parent); 968Assert.Same(value, control.Parent); 1085Assert.Same(value, control.Parent); 1091Assert.Same(value, control.Parent); 1105Assert.Same(parent, control.Parent); 1111Assert.Same(parent, control.Parent); 1133Assert.Same(value, control.Parent); 1142Assert.Same(value, control.Parent); 1169Assert.Same(parent, control.Parent); 1174Assert.Same(parent, control.Parent); 1179Assert.Null(control.Parent); 1185Assert.Same(parent, control.Parent); 1197Assert.Null(control.Parent); 1206Assert.Null(control.Parent); 1222Assert.NotNull(control.Parent);
System\Windows\Forms\GroupBoxTests.cs (1)
81Assert.Null(control.Parent);
System\Windows\Forms\HScrollBarTests.cs (1)
91Assert.Null(control.Parent);
System\Windows\Forms\LabelTests.cs (1)
86Assert.Null(control.Parent);
System\Windows\Forms\ListBoxTests.cs (1)
98Assert.Null(control.Parent);
System\Windows\Forms\ListControlTests.cs (1)
87Assert.Null(control.Parent);
System\Windows\Forms\ListViewTests.cs (1)
115Assert.Null(control.Parent);
System\Windows\Forms\MdiClientTests.cs (1)
67Assert.Null(control.Parent);
System\Windows\Forms\MenuStripTests.cs (1)
117Assert.Null(control.Parent);
System\Windows\Forms\MonthCalendarTests.cs (1)
103Assert.Null(control.Parent);
System\Windows\Forms\PanelTests.cs (1)
93Assert.Null(control.Parent);
System\Windows\Forms\PictureBoxTests.cs (12)
88Assert.Null(control.Parent); 1129Assert.Same(value, control.Parent); 1133Assert.Same(value, control.Parent); 1147Assert.Same(value, control.Parent); 1152Assert.Same(value, control.Parent); 1164Assert.Same(parent, control.Parent); 1169Assert.Same(parent, control.Parent); 1189Assert.Same(parent, control.Parent); 1194Assert.Same(parent, control.Parent); 1199Assert.Null(control.Parent); 1205Assert.Same(parent, control.Parent); 1214Assert.Null(control.Parent);
System\Windows\Forms\PropertyGridTests.cs (1)
128Assert.Null(control.Parent);
System\Windows\Forms\RadioButtonTests.cs (1)
94Assert.Null(control.Parent);
System\Windows\Forms\RichTextBoxTests.cs (1)
103Assert.Null(control.Parent);
System\Windows\Forms\ScrollableControlTests.cs (2)
92Assert.Null(control.Parent); 2539control.Controls.Add(activeControl.Parent ?? activeControl);
System\Windows\Forms\ScrollBarTests.cs (1)
81Assert.Null(control.Parent);
System\Windows\Forms\SplitterTests.cs (1)
81Assert.Null(control.Parent);
System\Windows\Forms\StatusStripTests.cs (9)
116Assert.Null(control.Parent); 911Assert.Null(control.Parent); 926Assert.Null(control.Parent); 937Assert.Null(control.Parent); 964Assert.Null(control.Parent); 979Assert.Null(control.Parent); 990Assert.Null(control.Parent); 1032Assert.Null(control.Parent); 1043Assert.Null(control.Parent);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (49)
70Assert.Same(owner, value1.Parent); 88Assert.Same(owner, value1.Parent); 92Assert.Same(owner, value2.Parent); 116Assert.Same(owner, value1.Parent); 118Assert.Same(owner, value2.Parent); 200Assert.Same(owner, value1.Parent); 227Assert.Same(owner, value1.Parent); 231Assert.Same(owner, value2.Parent); 268Assert.Same(owner, value1.Parent); 272Assert.Same(owner, value2.Parent); 367Assert.Same(owner, value1.Parent); 388Assert.Same(owner, value1.Parent); 392Assert.Same(owner, value2.Parent); 422Assert.Same(owner, value1.Parent); 424Assert.Same(owner, value2.Parent); 515Assert.Same(owner, value1.Parent); 545Assert.Same(owner, value1.Parent); 549Assert.Same(owner, value2.Parent); 592Assert.Same(owner, value1.Parent); 596Assert.Same(owner, value2.Parent); 667Assert.Same(owner, value.Parent); 701Assert.Same(owner, value.Parent); 724Assert.Same(owner, value.Parent); 743Assert.Same(owner, value.Parent); 923Assert.Same(owner, value1.Parent); 927Assert.Null(value2.Parent); 943Assert.Same(owner, value1.Parent); 947Assert.Null(value2.Parent); 963Assert.Null(value1.Parent); 967Assert.Null(value2.Parent); 1035Assert.Same(owner, value1.Parent); 1039Assert.Null(value2.Parent); 1058Assert.Same(owner, value1.Parent); 1062Assert.Null(value2.Parent); 1084Assert.Null(value1.Parent); 1088Assert.Null(value2.Parent); 1153Assert.Same(owner, value1.Parent); 1157Assert.Null(value2.Parent); 1176Assert.Same(owner, value1.Parent); 1180Assert.Null(value2.Parent); 1199Assert.Null(value1.Parent); 1203Assert.Null(value2.Parent); 1272Assert.Same(owner, value1.Parent); 1276Assert.Null(value2.Parent); 1295Assert.Same(owner, value1.Parent); 1299Assert.Null(value2.Parent); 1321Assert.Null(value1.Parent); 1325Assert.Null(value2.Parent); 1438Assert.Same(owner, value.Parent);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (160)
56Assert.Same(owner, value1.Parent); 75Assert.Same(owner, value1.Parent); 79Assert.Same(owner, value2.Parent); 104Assert.Same(owner, value1.Parent); 106Assert.Same(owner, value2.Parent); 189Assert.Same(owner, value1.Parent); 217Assert.Same(owner, value1.Parent); 221Assert.Same(owner, value2.Parent); 259Assert.Same(owner, value1.Parent); 263Assert.Same(owner, value2.Parent); 359Assert.Same(owner, value1.Parent); 381Assert.Same(owner, value1.Parent); 385Assert.Same(owner, value2.Parent); 416Assert.Same(owner, value1.Parent); 418Assert.Same(owner, value2.Parent); 510Assert.Same(owner, value1.Parent); 541Assert.Same(owner, value1.Parent); 545Assert.Same(owner, value2.Parent); 589Assert.Same(owner, value1.Parent); 593Assert.Same(owner, value2.Parent); 666Assert.Same(owner, value.Parent); 702Assert.Same(owner, value.Parent); 727Assert.Same(owner, value.Parent); 747Assert.Same(owner, value.Parent); 901Assert.Same(owner, page.Parent); 922Assert.Same(owner, page.Parent); 943Assert.Same(owner, page.Parent); 964Assert.Same(owner, page.Parent); 1003Assert.Same(owner, value1.Parent); 1021Assert.Same(owner, value1.Parent); 1025Assert.Same(owner, value2.Parent); 1049Assert.Same(owner, value1.Parent); 1051Assert.Same(owner, value2.Parent); 1115Assert.Same(owner, child1.Parent); 1116Assert.Same(owner, child2.Parent); 1117Assert.Same(owner, child3.Parent); 1127Assert.Same(owner, child1.Parent); 1128Assert.Same(owner, child2.Parent); 1129Assert.Same(owner, child3.Parent); 1140Assert.Same(owner, child1.Parent); 1141Assert.Same(owner, child2.Parent); 1142Assert.Same(owner, child3.Parent); 1364Assert.Null(child1.Parent); 1365Assert.Null(child2.Parent); 1366Assert.Null(child3.Parent); 1379Assert.Null(child1.Parent); 1380Assert.Null(child2.Parent); 1381Assert.Null(child3.Parent); 1485Assert.Null(child1.Parent); 1486Assert.Null(child2.Parent); 1487Assert.Null(child3.Parent); 1503Assert.Null(child1.Parent); 1504Assert.Null(child2.Parent); 1505Assert.Null(child3.Parent); 1998Assert.Same(owner, value1.Parent); 2017Assert.Same(owner, value1.Parent); 2021Assert.Same(owner, value2.Parent); 2048Assert.Same(owner, value1.Parent); 2050Assert.Same(owner, value2.Parent); 2126Assert.Same(owner, value1.Parent); 2154Assert.Same(owner, value1.Parent); 2158Assert.Same(owner, value2.Parent); 2198Assert.Same(owner, value1.Parent); 2202Assert.Same(owner, value2.Parent); 2302Assert.Same(owner, value1.Parent); 2324Assert.Same(owner, value1.Parent); 2328Assert.Same(owner, value2.Parent); 2361Assert.Same(owner, value1.Parent); 2363Assert.Same(owner, value2.Parent); 2459Assert.Same(owner, value1.Parent); 2490Assert.Same(owner, value1.Parent); 2494Assert.Same(owner, value2.Parent); 2540Assert.Same(owner, value1.Parent); 2544Assert.Same(owner, value2.Parent); 2619Assert.Same(owner, value.Parent); 2653Assert.Same(owner, value.Parent); 2676Assert.Same(owner, value.Parent); 2697Assert.Same(owner, value.Parent); 2715Assert.Same(owner, page.Parent); 2735Assert.Same(owner, page.Parent); 2755Assert.Same(owner, page.Parent); 2775Assert.Same(owner, page.Parent); 3044Assert.Same(owner, value1.Parent); 3063Assert.Same(owner, value1.Parent); 3067Assert.Same(owner, value2.Parent); 3094Assert.Same(owner, value1.Parent); 3096Assert.Same(owner, value2.Parent); 3374Assert.Same(owner, page1.Parent); 3375Assert.Same(owner, page2.Parent); 3376Assert.Same(owner, page3.Parent); 3377Assert.Null(newPage.Parent); 3419Assert.Same(owner, page1.Parent); 3420Assert.Same(owner, page2.Parent); 3421Assert.Same(owner, page3.Parent); 3422Assert.Null(newPage.Parent); 3459Assert.Same(owner, page1.Parent); 3460Assert.Same(owner, page2.Parent); 3461Assert.Same(owner, page3.Parent); 3462Assert.Null(newPage.Parent); 3515Assert.Same(owner, page1.Parent); 3516Assert.Same(owner, page2.Parent); 3517Assert.Same(owner, page3.Parent); 3518Assert.Null(newPage.Parent); 3773Assert.Same(owner, page1.Parent); 3774Assert.Same(owner, page2.Parent); 3775Assert.Same(owner, page3.Parent); 3776Assert.Null(newPage.Parent); 3817Assert.Same(owner, page1.Parent); 3818Assert.Same(owner, page2.Parent); 3819Assert.Same(owner, page3.Parent); 3820Assert.Null(newPage.Parent); 3856Assert.Same(owner, page1.Parent); 3857Assert.Same(owner, page2.Parent); 3858Assert.Same(owner, page3.Parent); 3859Assert.Null(newPage.Parent); 3911Assert.Same(owner, page1.Parent); 3912Assert.Same(owner, page2.Parent); 3913Assert.Same(owner, page3.Parent); 3914Assert.Null(newPage.Parent); 4010Assert.Same(owner, value1.Parent); 4014Assert.Null(value2.Parent); 4031Assert.Same(owner, value1.Parent); 4035Assert.Null(value2.Parent); 4052Assert.Null(value1.Parent); 4056Assert.Null(value2.Parent); 4125Assert.Same(owner, value1.Parent); 4129Assert.Null(value2.Parent); 4149Assert.Same(owner, value1.Parent); 4153Assert.Null(value2.Parent); 4176Assert.Null(value1.Parent); 4180Assert.Null(value2.Parent); 4248Assert.Same(owner, value1.Parent); 4252Assert.Null(value2.Parent); 4272Assert.Same(owner, value1.Parent); 4276Assert.Null(value2.Parent); 4296Assert.Null(value1.Parent); 4300Assert.Null(value2.Parent); 4372Assert.Same(owner, value1.Parent); 4376Assert.Null(value2.Parent); 4396Assert.Same(owner, value1.Parent); 4400Assert.Null(value2.Parent); 4423Assert.Null(value1.Parent); 4427Assert.Null(value2.Parent); 4544Assert.Same(owner, value.Parent); 4729Assert.Same(owner, value1.Parent); 4733Assert.Null(value2.Parent); 4749Assert.Same(owner, value1.Parent); 4753Assert.Null(value2.Parent); 4769Assert.Null(value1.Parent); 4773Assert.Null(value2.Parent); 4839Assert.Same(owner, child1.Parent); 4840Assert.Null(child2.Parent); 4850Assert.Null(child1.Parent); 4851Assert.Null(child2.Parent); 4933Assert.Same(owner, child1.Parent); 4934Assert.Null(child2.Parent); 4935Assert.Same(owner, child3.Parent); 4946Assert.Same(owner, child1.Parent); 4947Assert.Null(child2.Parent); 4948Assert.Null(child3.Parent);
System\Windows\Forms\TabControlTests.cs (13)
85Assert.Null(control.Parent); 5026Assert.Null(child1.Parent); 5027Assert.Null(child2.Parent); 5028Assert.Null(child3.Parent); 5040Assert.Null(child1.Parent); 5041Assert.Null(child2.Parent); 5042Assert.Null(child3.Parent); 5139Assert.Null(child1.Parent); 5140Assert.Null(child2.Parent); 5141Assert.Null(child3.Parent); 5156Assert.Null(child1.Parent); 5157Assert.Null(child2.Parent); 5158Assert.Null(child3.Parent);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
101Assert.Null(control.Parent);
System\Windows\Forms\TabPageTests.cs (16)
98Assert.Null(control.Parent); 207Assert.Null(control.Parent); 2487Assert.Same(value, control.Parent); 2492Assert.Same(value, control.Parent); 2507Assert.Same(value, control.Parent); 2513Assert.Same(value, control.Parent); 2526Assert.Same(parent, control.Parent); 2532Assert.Same(parent, control.Parent); 2551Assert.Same(value, control.Parent); 2559Assert.Same(value, control.Parent); 2582Assert.Same(parent, control.Parent); 2587Assert.Same(parent, control.Parent); 2592Assert.Null(control.Parent); 2598Assert.Same(parent, control.Parent); 2607Assert.Null(control.Parent); 2616Assert.Null(control.Parent);
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (5)
52Assert.Same(owner, control1.Parent); 63Assert.Same(owner, control1.Parent); 65Assert.Same(owner, control2.Parent); 79Assert.Same(owner, control1.Parent); 81Assert.Same(owner, control2.Parent);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
95Assert.Null(control.Parent);
System\Windows\Forms\ToolStripControlHostTests.cs (5)
3188Assert.Same(controlParent, c.Parent); 3200Assert.Same(controlParent, c.Parent); 3212Assert.Same(controlParent, c.Parent); 3224Assert.Same(controlParent, c.Parent); 3236Assert.Same(controlParent, c.Parent);
System\Windows\Forms\ToolStripDropDownTests.cs (28)
125Assert.Null(control.Parent); 3043Assert.Null(control.Parent); 3059Assert.Null(control.Parent); 3071Assert.Null(control.Parent); 3099Assert.Null(control.Parent); 3116Assert.Null(control.Parent); 3129Assert.Null(control.Parent); 3156Assert.Null(control.Parent); 3172Assert.Null(control.Parent); 3184Assert.Null(control.Parent); 3216Assert.Null(control.Parent); 3236Assert.Null(control.Parent); 3256Assert.Null(control.Parent); 3287Assert.Null(control.Parent); 3303Assert.Null(control.Parent); 3315Assert.Null(control.Parent); 3342Assert.Null(control.Parent); 3353Assert.Null(control.Parent); 3380Assert.Null(control.Parent); 3397Assert.Null(control.Parent); 3410Assert.Null(control.Parent); 3443Assert.Null(control.Parent); 3456Assert.Null(control.Parent); 3489Assert.Null(control.Parent); 3509Assert.Null(control.Parent); 3529Assert.Null(control.Parent); 3578Assert.Null(control.Parent); 3597Assert.Null(control.Parent);
System\Windows\Forms\ToolStripPanelTests.cs (1)
95Assert.Null(control.Parent);
System\Windows\Forms\ToolStripTests.cs (21)
133Assert.Null(control.Parent); 288Assert.Null(control.Parent); 4361Assert.Null(control.Parent); 4377Assert.Null(control.Parent); 4389Assert.Null(control.Parent); 4415Assert.Null(control.Parent); 4431Assert.Null(control.Parent); 4443Assert.Null(control.Parent); 4475Assert.Null(control.Parent); 4495Assert.Null(control.Parent); 4515Assert.Null(control.Parent); 4546Assert.Null(control.Parent); 4562Assert.Null(control.Parent); 4574Assert.Null(control.Parent); 4601Assert.Null(control.Parent); 4612Assert.Null(control.Parent); 4643Assert.Null(control.Parent); 4663Assert.Null(control.Parent); 4683Assert.Null(control.Parent); 4732Assert.Null(control.Parent); 4751Assert.Null(control.Parent);
System\Windows\Forms\TreeViewTests.cs (1)
94Assert.Null(control.Parent);
System\Windows\Forms\UpDownBaseTests.cs (3)
107Assert.Null(control.Parent); 1261Assert.Same(control, ((Control)source).Parent); 1301Assert.Same(control, ((Control)source).Parent);
System\Windows\Forms\UserControlTests.cs (1)
99Assert.Null(control.Parent);
System\Windows\Forms\VScrollBarTests.cs (1)
90Assert.Null(control.Parent);
System\Windows\Forms\WebBrowserTests.cs (36)
77Assert.Null(control.Parent); 1405Assert.Same(parent, control.Parent); 1410Assert.Same(parent, control.Parent); 1422Assert.Same(parent, control.Parent); 1428Assert.Null(control.Parent); 1444Assert.Same(parent, control.Parent); 1450Assert.Null(control.Parent); 1464Assert.Same(parent, control.Parent); 1470Assert.Null(control.Parent); 1483Assert.Same(parent, control.Parent); 1489Assert.Null(control.Parent); 1505Assert.Same(parent, control.Parent); 1511Assert.Null(control.Parent); 1527Assert.Same(parent, control.Parent); 1533Assert.Null(control.Parent); 1554Assert.Same(parent, control.Parent); 1559Assert.Same(parent, control.Parent); 1564Assert.Null(control.Parent); 1570Assert.Same(parent, control.Parent); 1579Assert.Null(control.Parent); 2527Assert.Null(control.Parent); 2542Assert.Null(control.Parent); 2553Assert.Null(control.Parent); 2582Assert.Null(control.Parent); 2597Assert.Null(control.Parent); 2608Assert.Null(control.Parent); 2630Assert.Null(control.Parent); 2645Assert.Null(control.Parent); 2656Assert.Null(control.Parent); 2689Assert.NotNull(control.Parent); 2700Assert.NotNull(control.Parent); 2729Assert.Null(control.Parent); 2744Assert.Null(control.Parent); 2755Assert.Null(control.Parent); 2781Assert.Null(control.Parent); 2792Assert.Null(control.Parent);
TextBoxTests.cs (1)
90Assert.Null(control.Parent);
TrackBarTests.cs (1)
84Assert.Null(control.Parent);
WindowsFormsIntegration (11)
System\Windows\Integration\ElementHost.cs (8)
999OnPropertyChanged("Parent", this.Parent); 1545while (control.Parent != null) 1547control = control.Parent; 1625while (topMostParent.Parent != null) 1627topMostParent = topMostParent.Parent; 1647Control parentControl = _hostControl.Parent; 1659parentControl = parentControl.Parent; 1689return (control.Parent == null) &&
System\Windows\Integration\ElementHostPropertyMap.cs (1)
69Control parent = host.Parent;
System\Windows\Integration\WindowsFormsHost.cs (2)
942&& (this.ActiveControl != null && this.ActiveControl.Parent == this)) 944SWF.Control c = this.ActiveControl.Parent;