private void button3_Click(object sender, EventArgs e) { if (abt == null) { if (d != null) { d.Close(); } if (lg != null) { lg.Close(); } abt = new AboutUs(); abt.MdiParent = this; abt.StartPosition = FormStartPosition.CenterScreen; abt.FormClosed += new FormClosedEventHandler(Abt_FormClosed); abt.Show(); } }
private void Abt_FormClosed(object sender, FormClosedEventArgs e) { abt = null; }