Answers for "how to open or close a panel in c# with a button"

2

open a new form with a button and close the last one

this.Hide();
    var form2 = new Form2();
    form2.Closed += (s, args) => this.Close(); 
    form2.Show();
Posted by: Guest on May-12-2020
0

c# open a new form and close current

{
    this.Hide();
    Form1 f1 = new Form1();
    f1.ShowDialog();
    this.Close();
}
Posted by: Guest on July-05-2020

Code answers related to "how to open or close a panel in c# with a button"

Browse Popular Code Answers by Language