Exemple #1
0
 private void XuLyDangNhapThanhCong()
 {
     this.Controls.Clear();
     ucManHinhChinh = new ucMain();
     ucManHinhChinh.xuLyDangXuat += XuLyDangXuat;
     this.Controls.Add(ucManHinhChinh);
     ucManHinhChinh.Dock = DockStyle.Fill;
     ucManHinhChinh.BringToFront();
 }
Exemple #2
0
        private void btnMainMenu_MouseClick(object sender, MouseEventArgs e)
        {
            pnlParent.Controls.Clear();
            ucMain uc = new ucMain();

            // uc.Location = new Point(0, 20);
            pnlParent.Controls.Add(uc);
            uc.Show();
        }
Exemple #3
0
        private void pnlTop_Load(object sender, EventArgs e)
        {
            pnlTop.Width         = this.Size.Width + 2;
            picX.Location        = new Point(pnlTop.Width - 40, pnlTop.Height - 29);
            btnMinimize.Location = new Point(picX.Location.X - 40, picX.Location.Y);

            ucMain uc = new ucMain();

            //uc.Location = new Point(0, 20);
            pnlParent.Controls.Add(uc);
            uc.Show();
        }