If Form2 is being opened from Form1, then it is probably not a good idea to close it.
If Form1 is the main form for the application, then closing it will end the application, closing Form2 as well.
If what you want to do is open Form2 from Form1 and then hide Form1:
Form2 f2 = new Form2();
Hide();
f2.ShowDialog();
Show();
Or
Form2 f2 = new Form2();
Hide();
f2.ShowDialog();
Close();
Which will end the app when Form2 is closed.