private void buttonlogin_Click(object sender, EventArgs e) { Formmain newForm = new Formmain();//声明新窗体,Formmain是已设计好的并列窗体 newForm.Show();//打开新窗体 }