how to close only current form in c# windows form 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();
}