private void tsbtnDangKy_Click(object sender, EventArgs e) { if (!IsShow("frmDangKy")) { frmDangKy dangky = new frmDangKy(); dangky.StartPosition = FormStartPosition.CenterScreen; dangky.MdiParent = this; dangky.Show(); } else { foreach (Form frmDangKy in this.MdiChildren) { if (frmDangKy.Name == "frmDangKy") { frmDangKy.Activate(); break; } } } }
private void mnuDangKy_Click(object sender, EventArgs e) { frmDangKy dangky = new frmDangKy(); dangky.ShowDialog(); }