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