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