I have created two forms namely Form1 and Form2 their is a Button in form two when the Button is clicked Form2 should be displayed.But I keep getting the error "Form2 Type is not valid in the context"
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
Form2 in = new Form2();
in.show();
}
}