open and close forms c# 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();
}