private void baoCaoCôngNơToolStripMenuItem_Click(object sender, EventArgs e) { frmBaoCaoCongNo frm = new frmBaoCaoCongNo(); frm.MdiParent = this; frm.Show(); }
private void btnBaoCaoCongNo_ItemClick(object sender, ItemClickEventArgs e) { if (KiemTraTonTai("frmBaoCaoCongNo") == null) { foreach (Form frm1 in MdiChildren) { frm1.Close(); } frmBaoCaoCongNo frm = new frmBaoCaoCongNo(); frm.MdiParent = this; frm.Show(); } }