windows forms c# button to open new form and close current code example
Example: c# open a new form and close current
{
this.Hide();
Form1 f1 = new Form1();
f1.ShowDialog();
this.Close();
}
{
this.Hide();
Form1 f1 = new Form1();
f1.ShowDialog();
this.Close();
}