Reputation: 327
I have a winforms project and I need to open another form on the click of a button on the main form (Form1).
What is the C# to do this?
Upvotes: 0
Views: 373
Reputation: 51711
. . .
Form2 newForm = new Form2();
newForm.Show();
//or newForm.ShowDialog();
...
Upvotes: 8