hello friends,
i want to know that if i have already open form then same form will not open again... is it possible in Windows Application using C#...
and i m using MDI form and other then is Child form.. i m given you code and i dont knowhow can i solve my problem...]
//code for open form
Parties_Entry parties = new Parties_Entry();
parties.MdiParent = Main_Form.mainObj;
parties.Show();
Reply me ASAP...
How can i checked if form is already open
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Mamta MRank #268 · 9.4K reputationPosted Aug 25, 2010, 12:32 AM EDT
//code for open form
Parties_Entry parties = new Parties_Entry();
parties.MdiParent = Main_Form.mainObj;
parties.Name = "parties";
if (this.ActiveMdiChild != null)
{
MessageBox.Show(this.ActiveMdiChild.Name);
if (this.ActiveMdiChild.Name != "parties")
parties.Show();
}
else
{
parties.Show();
}
Sam HobbsRank #107 · 20.5K reputationPosted Aug 25, 2010, 10:56 AM EDT