Okay this is my first time awnsering to a post but i was looking for this awnser earlyer so i will try to help you
To show the 2nd form you would do
form2 f2 = new form2();
f2.Show();
To hide for one simple do
form2 f2 = new Form2();
f2.Show();
this.hide();
But the disadvantage to that is that, if you Close for2, Form 1 will still be hidden,
so if you want to have Form 2 Close you whole application when u close form2 do this
private void btnLogin_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.FormClosed += new FormClosedEventHandler(frm2_FormClosed);
frm2.Show();
this.Hide();
}
private void frm2_FormClosed(object sender, FormClosedEventArgs e)
{
this.Close();
}
}
i added that to my login button, so if they Succsesfuly login, it will hide Form1 and Show Form2, then when they want to close the application They just close Form2
i hope that made sense top you, i spent a long time figureing that out the other night
If you need anymore help let me know