RE: To Check Already Shown Form?
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;
}
}
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.
"wrytat" wrote:
> How do I check whether a form is already shown (open)?
Date:Wed, 22 Aug 2007 02:30:00 -0700
Author:
|