15 writes to TopLevel
PresentationUI (1)
MS\Internal\Documents\SigningProgress.Designer.cs (1)
67
TopLevel
= true;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerFrame.cs (1)
103
form.
TopLevel
= false;
System.Windows.Forms.Tests (13)
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
192
using Form embeddedForm = new() {
TopLevel
= false };
System\Windows\Forms\FormTests.cs (12)
376
TopLevel
= false,
503
TopLevel
= false
682
TopLevel
= false,
891
TopLevel
= false,
935
TopLevel
= false,
956
TopLevel
= false,
1102
TopLevel
= false,
1122
TopLevel
= false
1156
TopLevel
= false
1194
TopLevel
= false
1401
TopLevel
= true,
1788
TopLevel
= false,
25 references to TopLevel
System.Windows.Forms (17)
System\Windows\Forms\Control.cs (1)
7334
if (this is Form form && form.
TopLevel
)
System\Windows\Forms\Form.ControlCollection.cs (1)
33
if (!_owner.
TopLevel
&& !_owner.DesignMode)
System\Windows\Forms\Form.cs (15)
769
else if (
TopLevel
)
775
if (
TopLevel
&& (_formState[s_formStateLayered] != 0))
823
if (
TopLevel
|| IsMdiChild)
1640
if (value is not null && !
TopLevel
)
1986
if (IsHandleCreated &&
TopLevel
)
3339
if (!
TopLevel
|| IsMdiContainer)
3345
if (!ShowInTaskbar && OwnerInternal is null &&
TopLevel
)
3845
if (!
TopLevel
)
3905
if (
TopLevel
)
5051
if (
TopLevel
)
5387
if (!
TopLevel
)
5581
if (!
TopLevel
)
6014
if (IsHandleCreated &&
TopLevel
)
6040
if ((_formState[s_formStateLayered] != 0) && IsHandleCreated &&
TopLevel
)
6552
if (
TopLevel
&& (si.dwFlags & STARTUPINFOW_FLAGS.STARTF_USESHOWWINDOW) != 0)
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\DocumentDesigner.cs (2)
900
if (cd.Control is not Form form || !form.
TopLevel
)
956
&& !(ce.Component is Form form && form.
TopLevel
);
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
111
if (component is Control { Parent: null } childControl and not Form {
TopLevel
: true }) // Don't add top-level forms
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
456
&& host.GetDesigner(newChild) as ControlDesigner is not null && !(newChild is Form form && form.
TopLevel
))
2398
if (c is not Form form || !form.
TopLevel
)
System.Windows.Forms.Tests (2)
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
153
Assert.True(control.
TopLevel
);
System\Windows\Forms\FormTests.cs (1)
155
Assert.True(control.
TopLevel
);
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
323
if (form.
TopLevel
)