private void menuDoimatkhau_Click(object sender, EventArgs e) { if (dmk == null) { dmk = new Doimatkhau(); dmk.StartPosition = FormStartPosition.CenterScreen; dmk.WindowState = FormWindowState.Maximized; dmk.MdiParent = this; dmk.Show(); } else { dmk.Activate(); } }
private void bbtDoimatkhau_ItemClick(object sender, ItemClickEventArgs e) { Form frm = this.Kiemtratontai(typeof(Doimatkhau)); if (frm != null) { frm.Activate(); } else { Doimatkhau dmk = new Doimatkhau(); dmk.MdiParent = this; //dmk.StartPosition = FormStartPosition.CenterParent; dmk.WindowState = FormWindowState.Maximized; dmk.Show(); } }