刚学CS超简单问题
要使得Form1上按下Button之后,关闭Form1,并打开Form2,代码该怎么写?
[解决办法]
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
Form2 frm = new Form2();
frm.ShowDialog();
}