开发者

Opening a form programmatically

开发者 https://www.devze.com 2022-12-09 17:11 出处:网络
I have a winforms project and I need to open another form on the click of a button on the main form (开发者_开发百科Form1).

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

精彩评论

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

关注公众号