Probem to hide the first Form1 in VC# 2008
I have Form1 & Form2 in my VC# 2008 project, in the Form1 I did:
private void Form1_Load(object sender, EventArgs e)
{
this.Hide();
Form2 frm2 = new Form2();
frm2.Show();
}
But when it is executed, the Form1 still existed and covers Form2 in its back, even I try the following in Form2 ... the result is the same:
private void Form2_Load(object sender, EventArgs e)
{
Form1 frm1 = new Form1();
frm1.Hide();
}
Anyone can help, thanks in-advanced (by the way, I don't want to add a Launch Form2 button in Form1)