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?
. . .
Form2 newForm = new Form2();
newForm.Show();
//or newForm.ShowDialog();
...
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?
. . .
Form2 newForm = new Form2();
newForm.Show();
//or newForm.ShowDialog();
...
精彩评论