private void btnSales_Click(object sender, EventArgs e) { this.Hide(); SalesRegister salesRegister = new SalesRegister(); salesRegister.Show(); }
private void bunifuFlatButton3_Click(object sender, EventArgs e) { foreach (Form form in dbFrmContainer.Controls.OfType <Form>().ToArray()) { form.Close(); } SalesRegister l = new SalesRegister(); l.TopLevel = false; dbFrmContainer.Controls.Add(l); l.Show(); }