private void btnQL_TrangBi_ItemClick(object sender, ItemClickEventArgs e) { panelMain.Controls.Clear(); QL_TrangBi uc = new QL_TrangBi(); uc.Dock = DockStyle.Fill; panelMain.Controls.Add(uc); }
private void FrmMain_Load(object sender, EventArgs e) { panelMain.Controls.Clear(); QL_TrangBi uc = new QL_TrangBi(); uc.Dock = DockStyle.Fill; panelMain.Controls.Add(uc); }