csharpdev
csharpdev

Reputation: 327

Opening a form programmatically

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

Answers (1)

Binary Worrier
Binary Worrier

Reputation: 51711

. . .

Form2 newForm = new Form2();
newForm.Show();
//or newForm.ShowDialog();

...

Upvotes: 8

Related Questions