private void btnBrand_Click(object sender, EventArgs e) { frmBrandList frm = new frmBrandList(); frm.TopLevel = false; panel4.Controls.Add(frm); frm.BringToFront(); frm.Show(); }
public frmBrand(frmBrandList fList) { InitializeComponent(); cn = new SqlConnection(dBCon.MyConnection()); frmList = fList; }