开发者

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?


. . .

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

...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜