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