在应用程序中,当另一个表单关闭时打开一个表单

在应用程序中,当另一个表单关闭时打开一个表单

问题描述:

如何一次性设置属性只在Windows应用程序中打开一个表单

How to set property on single time only one form open in windows application

打开第二个表单时需要关闭第一个表单。



只需按下打开Form2的按钮即可轻松写入代码:



You need to close the first form when opening the second one.

Its easy you just go to your button that opens Form2 and write in the Code:

Close();



这将关闭Form1,然后你输入打开第二个表格的代码。


this will close Form1 and after that you put in your code that opens your second form.