To Check Already Shown Form?

  • Thread starter Thread starter Guest
  • Start date Start date
Hi,
You can try something like this:
FormCollection fc = Application.OpenForms;
bool FrmIsOpen = false;
foreach (Form frm in fc)
{
if(frm.GetType() == typeof( Your Form Name)); // put the name of your form
in the brackets
{
//u can propably check if its minimized here. or maybe use an if statement
to check if its minimized.
FrmIsOpen = true;
break;
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top