check loaded forms

SIMIN

Regular
Joined
Mar 10, 2008
Messages
92
Hello,
How can I check if ANY form except main form / start up form is being shown / loaded right now or not?
Without setting a boolean flag... Directly with .NET Framework...
Possible?
Thanks.
 
Have not tested this but you should be able to do something like this
Visual Basic:
For Each FrmToCheck As Form In Application.OpenForms
    If FrmToCheck IsNot Me Then
        If FrmToCheck.Visible Then
            'Form Is Displayed do whatever
        End if
    End If
Next
 
Back
Top