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)
121Assert.Null(control.TopLevelControl);
System.Windows.Forms.Tests (61)
System\Windows\Forms\AxHostTests.cs (2)
111Assert.Null(control.TopLevelControl); 205Assert.Null(control.TopLevelControl);
System\Windows\Forms\ButtonBaseTests.cs (1)
114Assert.Null(control.TopLevelControl);
System\Windows\Forms\ButtonTests.cs (1)
112Assert.Null(control.TopLevelControl);
System\Windows\Forms\CheckBoxTests.cs (1)
115Assert.Null(control.TopLevelControl);
System\Windows\Forms\ComboBoxTests.cs (1)
126Assert.Null(control.TopLevelControl);
System\Windows\Forms\ContainerControlTests.cs (1)
115Assert.Null(control.TopLevelControl);
System\Windows\Forms\ControlTests.cs (5)
93Assert.Null(control.TopLevelControl); 182Assert.Null(control.TopLevelControl); 278Assert.Null(control.TopLevelControl); 374Assert.Null(control.TopLevelControl); 470Assert.Null(control.TopLevelControl);
System\Windows\Forms\ControlTests.Properties.cs (6)
12576Assert.Null(control.TopLevelControl); 12577Assert.Null(parent.TopLevelControl); 12578Assert.Null(grandparent.TopLevelControl); 12594Assert.Same(grandparent, control.TopLevelControl); 12595Assert.Same(grandparent, parent.TopLevelControl); 12596Assert.Same(grandparent, grandparent.TopLevelControl);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
123Assert.Null(control.TopLevelControl);
System\Windows\Forms\DateTimePickerTests.cs (1)
117Assert.Null(control.TopLevelControl);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
154Assert.Same(control, control.TopLevelControl);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
118Assert.Null(control.TopLevelControl);
System\Windows\Forms\DomainUpDownTests.cs (1)
142_sub.TopLevelControl.Should().BeNull();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
109Assert.Null(control.TopLevelControl);
System\Windows\Forms\FormTests.cs (1)
156Assert.Same(control, control.TopLevelControl);
System\Windows\Forms\GroupBoxTests.cs (1)
97Assert.Null(control.TopLevelControl);
System\Windows\Forms\HScrollBarTests.cs (1)
111Assert.Null(control.TopLevelControl);
System\Windows\Forms\LabelTests.cs (1)
107Assert.Null(control.TopLevelControl);
System\Windows\Forms\ListBoxTests.cs (1)
127Assert.Null(control.TopLevelControl);
System\Windows\Forms\ListControlTests.cs (1)
105Assert.Null(control.TopLevelControl);
System\Windows\Forms\ListViewTests.cs (1)
144Assert.Null(control.TopLevelControl);
System\Windows\Forms\MdiClientTests.cs (1)
82Assert.Null(control.TopLevelControl);
System\Windows\Forms\MenuStripTests.cs (1)
141Assert.Null(control.TopLevelControl);
System\Windows\Forms\MonthCalendarTests.cs (1)
136Assert.Null(control.TopLevelControl);
System\Windows\Forms\PanelTests.cs (1)
108Assert.Null(control.TopLevelControl);
System\Windows\Forms\PictureBoxTests.cs (1)
105Assert.Null(control.TopLevelControl);
System\Windows\Forms\ProgressBarTests.cs (1)
97Assert.Null(control.TopLevelControl);
System\Windows\Forms\PropertyGridTests.cs (1)
157Assert.Null(control.TopLevelControl);
System\Windows\Forms\RadioButtonTests.cs (1)
112Assert.Null(control.TopLevelControl);
System\Windows\Forms\RichTextBoxTests.cs (1)
129Assert.Null(control.TopLevelControl);
System\Windows\Forms\ScrollableControlTests.cs (1)
108Assert.Null(control.TopLevelControl);
System\Windows\Forms\ScrollBarTests.cs (1)
99Assert.Null(control.TopLevelControl);
System\Windows\Forms\SplitterPanelTests.cs (1)
95Assert.Null(control.TopLevelControl);
System\Windows\Forms\SplitterTests.cs (1)
98Assert.Null(control.TopLevelControl);
System\Windows\Forms\StatusStripTests.cs (1)
144Assert.Null(control.TopLevelControl);
System\Windows\Forms\TabControlTests.cs (1)
109Assert.Null(control.TopLevelControl);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
119Assert.Null(control.TopLevelControl);
System\Windows\Forms\TabPageTests.cs (2)
114Assert.Null(control.TopLevelControl); 223Assert.Null(control.TopLevelControl);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
113Assert.Null(control.TopLevelControl);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
151Assert.Same(control, control.TopLevelControl);
System\Windows\Forms\ToolStripPanelTests.cs (1)
112Assert.Null(control.TopLevelControl);
System\Windows\Forms\ToolStripTests.cs (2)
157Assert.Null(control.TopLevelControl); 312Assert.Null(control.TopLevelControl);
System\Windows\Forms\TreeViewTests.cs (1)
122Assert.Null(control.TopLevelControl);
System\Windows\Forms\UpDownBaseTests.cs (1)
125Assert.Null(control.TopLevelControl);
System\Windows\Forms\UserControlTests.cs (1)
115Assert.Null(control.TopLevelControl);
System\Windows\Forms\VScrollBarTests.cs (1)
110Assert.Null(control.TopLevelControl);
System\Windows\Forms\WebBrowserTests.cs (1)
92Assert.Null(control.TopLevelControl);
TextBoxTests.cs (1)
116Assert.Null(control.TopLevelControl);
TrackBarTests.cs (1)
104Assert.Null(control.TopLevelControl);