Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted

Have not tested this but you should be able to do something like this

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...