private void Submenu_TambahkanAkun_Click(object sender, EventArgs e) { if (ta == null) { ta = new FormTambahAkun(); ta.MdiParent = this; ta.FormClosed += new FormClosedEventHandler(ta_FormClosed); ta.Show(); } else { ta.Activate(); } }
void ta_FormClosed(object sender, FormClosedEventArgs e) { ta = null; }