我已经创建了两个表单,即Form1和Form2,当单击Button时,它们是表单2中的Button。应该显示Form2。但是我一直收到错误" Form2 Type在上下文中无效"
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
Form2 in = new Form2();
in.show();
}
}