示例#1
0
        private void TKMenuItem_Click(object sender, EventArgs e)
        {
            PanelParent.Controls.Clear();
            frmThongKe frm = new frmThongKe(PanelParent, this);

            ShowForm(frm);
        }
示例#2
0
 private void thongKeThuNhapToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     //----!Đóng tất cả form con đang hiện ----
     foreach (Form f in MdiChildren)
     {
         if (f.ShowInTaskbar)
         {
             f.Close();
         }
     }
     if (kiemTraTrungForm("frmThongKe"))
     {
         frmThongKe fThongKe = new frmThongKe();
         fThongKe.Name      = "frmThongKe";
         fThongKe.MdiParent = this;
         fThongKe.Show();
     }
 }