67 references to TopLevelControl
System.Windows.Forms.Design (5)
System\ComponentModel\Design\DesignerActionPanel.cs (4)
431if (!e.Cancel && TopLevelControl is not null) 433Debug.Assert(TopLevelControl is Form, "DesignerActionPanel must be hosted on a Form."); 434Form form = (Form)TopLevelControl; 450if (TopLevelControl is Form form)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
179Control? toplevel = _parentControl.TopLevelControl;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
123Assert.Null(control.TopLevelControl);
System.Windows.Forms.Tests (61)
System\Windows\Forms\AxHostTests.cs (2)
113Assert.Null(control.TopLevelControl); 207Assert.Null(control.TopLevelControl);
System\Windows\Forms\ButtonBaseTests.cs (1)
116Assert.Null(control.TopLevelControl);
System\Windows\Forms\ButtonTests.cs (1)
114Assert.Null(control.TopLevelControl);
System\Windows\Forms\CheckBoxTests.cs (1)
117Assert.Null(control.TopLevelControl);
System\Windows\Forms\ComboBoxTests.cs (1)
128Assert.Null(control.TopLevelControl);
System\Windows\Forms\ContainerControlTests.cs (1)
117Assert.Null(control.TopLevelControl);
System\Windows\Forms\ControlTests.cs (5)
95Assert.Null(control.TopLevelControl); 184Assert.Null(control.TopLevelControl); 280Assert.Null(control.TopLevelControl); 376Assert.Null(control.TopLevelControl); 472Assert.Null(control.TopLevelControl);
System\Windows\Forms\ControlTests.Properties.cs (6)
12578Assert.Null(control.TopLevelControl); 12579Assert.Null(parent.TopLevelControl); 12580Assert.Null(grandparent.TopLevelControl); 12596Assert.Same(grandparent, control.TopLevelControl); 12597Assert.Same(grandparent, parent.TopLevelControl); 12598Assert.Same(grandparent, grandparent.TopLevelControl);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
125Assert.Null(control.TopLevelControl);
System\Windows\Forms\DateTimePickerTests.cs (1)
119Assert.Null(control.TopLevelControl);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
156Assert.Same(control, control.TopLevelControl);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
120Assert.Null(control.TopLevelControl);
System\Windows\Forms\DomainUpDownTests.cs (1)
144_sub.TopLevelControl.Should().BeNull();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
111Assert.Null(control.TopLevelControl);
System\Windows\Forms\FormTests.cs (1)
158Assert.Same(control, control.TopLevelControl);
System\Windows\Forms\GroupBoxTests.cs (1)
99Assert.Null(control.TopLevelControl);
System\Windows\Forms\HScrollBarTests.cs (1)
113Assert.Null(control.TopLevelControl);
System\Windows\Forms\LabelTests.cs (1)
109Assert.Null(control.TopLevelControl);
System\Windows\Forms\ListBoxTests.cs (1)
129Assert.Null(control.TopLevelControl);
System\Windows\Forms\ListControlTests.cs (1)
107Assert.Null(control.TopLevelControl);
System\Windows\Forms\ListViewTests.cs (1)
146Assert.Null(control.TopLevelControl);
System\Windows\Forms\MdiClientTests.cs (1)
84Assert.Null(control.TopLevelControl);
System\Windows\Forms\MenuStripTests.cs (1)
143Assert.Null(control.TopLevelControl);
System\Windows\Forms\MonthCalendarTests.cs (1)
138Assert.Null(control.TopLevelControl);
System\Windows\Forms\PanelTests.cs (1)
110Assert.Null(control.TopLevelControl);
System\Windows\Forms\PictureBoxTests.cs (1)
107Assert.Null(control.TopLevelControl);
System\Windows\Forms\ProgressBarTests.cs (1)
99Assert.Null(control.TopLevelControl);
System\Windows\Forms\PropertyGridTests.cs (1)
159Assert.Null(control.TopLevelControl);
System\Windows\Forms\RadioButtonTests.cs (1)
114Assert.Null(control.TopLevelControl);
System\Windows\Forms\RichTextBoxTests.cs (1)
131Assert.Null(control.TopLevelControl);
System\Windows\Forms\ScrollableControlTests.cs (1)
110Assert.Null(control.TopLevelControl);
System\Windows\Forms\ScrollBarTests.cs (1)
101Assert.Null(control.TopLevelControl);
System\Windows\Forms\SplitterPanelTests.cs (1)
97Assert.Null(control.TopLevelControl);
System\Windows\Forms\SplitterTests.cs (1)
100Assert.Null(control.TopLevelControl);
System\Windows\Forms\StatusStripTests.cs (1)
146Assert.Null(control.TopLevelControl);
System\Windows\Forms\TabControlTests.cs (1)
111Assert.Null(control.TopLevelControl);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
121Assert.Null(control.TopLevelControl);
System\Windows\Forms\TabPageTests.cs (2)
116Assert.Null(control.TopLevelControl); 225Assert.Null(control.TopLevelControl);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
115Assert.Null(control.TopLevelControl);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
153Assert.Same(control, control.TopLevelControl);
System\Windows\Forms\ToolStripPanelTests.cs (1)
114Assert.Null(control.TopLevelControl);
System\Windows\Forms\ToolStripTests.cs (2)
159Assert.Null(control.TopLevelControl); 314Assert.Null(control.TopLevelControl);
System\Windows\Forms\TreeViewTests.cs (1)
124Assert.Null(control.TopLevelControl);
System\Windows\Forms\UpDownBaseTests.cs (1)
127Assert.Null(control.TopLevelControl);
System\Windows\Forms\UserControlTests.cs (1)
117Assert.Null(control.TopLevelControl);
System\Windows\Forms\VScrollBarTests.cs (1)
112Assert.Null(control.TopLevelControl);
System\Windows\Forms\WebBrowserTests.cs (1)
94Assert.Null(control.TopLevelControl);
TextBoxTests.cs (1)
118Assert.Null(control.TopLevelControl);
TrackBarTests.cs (1)
106Assert.Null(control.TopLevelControl);