Answer the question
In order to leave comments, you need to log in
How can I open the second form in C# without hanging up, so that the first one closes?
Prescribed
Form2 f = new Form2();
f.ShowDialog();
Answer the question
In order to leave comments, you need to log in
Thank you for the correct wording of the question)
I myself had to think and look on the Internet and this is what I found. Let me tell you right now, I did it.
private void Button1_Click(object sender, EventArgs e)
{
MainForm Main = new MainForm();
this.Hide();
MainShowDialog();
this.Close();
}
as you can see, I also brought with the button Button. so that everything goes well.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question