public BrandList(frmBrand flist) { InitializeComponent(); con = new MySqlConnection(dbCon.getConnection()); frmlist = flist; this.KeyPreview = true; }
private void btnBrand_Click(object sender, EventArgs e) { frmBrand frm = new frmBrand(); frm.TopLevel = false; panelShow.Controls.Add(frm); frm.BringToFront(); frm.Show(); }