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;
}
}
 
Back
Top