private void btnXe_ItemClick(object sender, ItemClickEventArgs e) { frmXe f = new frmXe(); f.MdiParent = this; f.Show(); }
private void mnquanlyxe_Click(object sender, EventArgs e) { foreach (Form mdiChild in this.MdiChildren) { if (mdiChild.Name == "frmXe") { mdiChild.Activate(); return; } } frmXe uc = new frmXe(); uc.Show(); uc.MdiParent = this; }