67 references to TopLevelControl
System.Windows.Forms.Design (5)
System\ComponentModel\Design\DesignerActionPanel.cs (4)
431
if (!e.Cancel &&
TopLevelControl
is not null)
433
Debug.Assert(
TopLevelControl
is Form, "DesignerActionPanel must be hosted on a Form.");
434
Form form = (Form)
TopLevelControl
;
450
if (
TopLevelControl
is Form form)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
179
Control? toplevel = _parentControl.
TopLevelControl
;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
121
Assert.Null(control.
TopLevelControl
);
System.Windows.Forms.Tests (61)
System\Windows\Forms\AxHostTests.cs (2)
111
Assert.Null(control.
TopLevelControl
);
205
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ButtonBaseTests.cs (1)
114
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ButtonTests.cs (1)
112
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\CheckBoxTests.cs (1)
115
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ComboBoxTests.cs (1)
126
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ContainerControlTests.cs (1)
115
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ControlTests.cs (5)
93
Assert.Null(control.
TopLevelControl
);
182
Assert.Null(control.
TopLevelControl
);
278
Assert.Null(control.
TopLevelControl
);
374
Assert.Null(control.
TopLevelControl
);
470
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ControlTests.Properties.cs (6)
12576
Assert.Null(control.
TopLevelControl
);
12577
Assert.Null(parent.
TopLevelControl
);
12578
Assert.Null(grandparent.
TopLevelControl
);
12594
Assert.Same(grandparent, control.
TopLevelControl
);
12595
Assert.Same(grandparent, parent.
TopLevelControl
);
12596
Assert.Same(grandparent, grandparent.
TopLevelControl
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
123
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\DateTimePickerTests.cs (1)
117
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
154
Assert.Same(control, control.
TopLevelControl
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
118
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\DomainUpDownTests.cs (1)
142
_sub.
TopLevelControl
.Should().BeNull();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
109
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\FormTests.cs (1)
156
Assert.Same(control, control.
TopLevelControl
);
System\Windows\Forms\GroupBoxTests.cs (1)
97
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\HScrollBarTests.cs (1)
111
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\LabelTests.cs (1)
107
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ListBoxTests.cs (1)
127
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ListControlTests.cs (1)
105
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ListViewTests.cs (1)
144
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\MdiClientTests.cs (1)
82
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\MenuStripTests.cs (1)
141
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\MonthCalendarTests.cs (1)
136
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\PanelTests.cs (1)
108
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\PictureBoxTests.cs (1)
105
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ProgressBarTests.cs (1)
97
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\PropertyGridTests.cs (1)
157
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\RadioButtonTests.cs (1)
112
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\RichTextBoxTests.cs (1)
129
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ScrollableControlTests.cs (1)
108
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ScrollBarTests.cs (1)
99
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\SplitterPanelTests.cs (1)
95
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\SplitterTests.cs (1)
98
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\StatusStripTests.cs (1)
144
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\TabControlTests.cs (1)
109
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
119
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\TabPageTests.cs (2)
114
Assert.Null(control.
TopLevelControl
);
223
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
113
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
151
Assert.Same(control, control.
TopLevelControl
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
112
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\ToolStripTests.cs (2)
157
Assert.Null(control.
TopLevelControl
);
312
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\TreeViewTests.cs (1)
122
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\UpDownBaseTests.cs (1)
125
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\UserControlTests.cs (1)
115
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\VScrollBarTests.cs (1)
110
Assert.Null(control.
TopLevelControl
);
System\Windows\Forms\WebBrowserTests.cs (1)
92
Assert.Null(control.
TopLevelControl
);
TextBoxTests.cs (1)
116
Assert.Null(control.
TopLevelControl
);
TrackBarTests.cs (1)
104
Assert.Null(control.
TopLevelControl
);