Deepak Rai

Deepak Rai

  • NA
  • 45
  • 8.7k

Close the current form when new form opened in MDI?

Jan 7 2014 4:35 AM
private void Form1(object sender, EventArgs e)
{
if (ActiveMdiChild != null)
ActiveMdiChild.Close()
Form2 frm2 = new Form2();
frm2.MdiParent = this;
frm2.Show();
}
 
where the Teacher_Entry is a form
This code works on MS Visual Studio 2008 but not in MS Visual Studio2005 please send me the answer for this...