25 references to OpenForms
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
344
Return Application.
OpenForms
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.WinFormsAppContext.vb (1)
43
Dim forms As FormCollection = Application.
OpenForms
System.Windows.Forms (9)
System\Windows\Forms\Application.cs (1)
610
foreach (Form f in
OpenForms
)
System\Windows\Forms\Form.cs (7)
2076
if (!Application.
OpenForms
.Contains(this))
2078
Application.
OpenForms
.Add(this);
4025
Application.
OpenForms
.Remove(this);
4182
Application.
OpenForms
.Remove(this);
4226
Application.
OpenForms
.Add(this);
4811
if (!Application.
OpenForms
.Contains(ownedForms[i]))
4839
if (ownedForms[i] is not null && !Application.
OpenForms
.Contains(ownedForms[i]))
System\Windows\Forms\Internal\WinFormsMetadataUpdateHandler.cs (1)
18
foreach (Form openForm in Application.
OpenForms
)
System.Windows.Forms.Tests (9)
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (1)
55
foreach (Form form in Application.
OpenForms
)
System\Windows\Forms\ApplicationTests.cs (8)
106
FormCollection forms = Application.
OpenForms
;
107
Assert.Same(forms, Application.
OpenForms
);
390
Assert.Empty(Application.
OpenForms
);
528
Assert.Empty(Application.
OpenForms
);
580
Application.
OpenForms
[rnd.Next(1, Application.
OpenForms
.Count - 1)].Close();
614
Assert.Empty(Application.
OpenForms
);
619
Assert.Equal(1 + childFormCount + addFormCount - removedFormCount, Application.
OpenForms
.Count);
System.Windows.Forms.UI.IntegrationTests (5)
ApplicationTests.cs (4)
28
Assert.Equal(expectedFormCount, Application.
OpenForms
.Count);
30
Assert.Equal(expectedFormCount, Application.
OpenForms
.Count);
32
Assert.Equal(expectedFormCount, Application.
OpenForms
.Count);
34
Assert.Equal(expectedFormCount, Application.
OpenForms
.Count);
Infra\ControlTestBase.cs (1)
156
if (Application.
OpenForms
.Count > 0)