private void btnadduser_Click(object sender, EventArgs e) { frmAddUser frm = frmAddUser.GetSingleton(); frm.MdiParent = this.MdiParent; frm.Show(); }
public static frmAddUser GetSingleton() { if (frm == null || frm.IsDisposed) // if (frm == null) { frm = new frmAddUser(); } frm.Activate(); return(frm); }