Example #1
0
        private void btnSanPham_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            Button btn = sender as Button;

            changecolorButtonMenu(btn);
            formSanPham frmSP = new formSanPham();

            frmSP.TopLevel = false;
            panelMain.Controls.Add(frmSP);
            frmSP.Show();
        }
 void addFormSanPham()
 {
     frmSP.TopLevel = false;
     tabSanPham.Controls.Add(frmSP);
     frmSP.Show();
 }