using System.Windows.Forms;
FormCollection fc = Application.OpenForms;
For (int FrmCount = 0; FrmCount < fc.Count; FrmCount++)
{
Form frm = fc[FrmCount];
if (frm.Name == "<Form Name>")
{
MessageBox.Show(" Child Forms Open");
}
}
FormCollection fc = Application.OpenForms;
For (int FrmCount = 0; FrmCount < fc.Count; FrmCount++)
{
Form frm = fc[FrmCount];
if (frm.Name == "<Form Name>")
{
MessageBox.Show(" Child Forms Open");
}
}
No comments:
Post a Comment