Answer the question
In order to leave comments, you need to log in
Switching from one form to another doesn't work?
Greetings. Visual Studio cannot find Windows Form 2.
Tried everything, doesn't work.
I have 2 forms Form1 Form2
I decided to put a transition button from the first form to the second, it does not work.
private void button1_Click(object sender, EventArgs e)
{
Form2 newForm = new Form2();
newForm.Show();
}
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form2());
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question