在应用程序中,当另一个表单关闭时打开一个表单 [英] in application one form open when another form is close

查看:55
本文介绍了在应用程序中,当另一个表单关闭时打开一个表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何一次性设置属性只在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.


这篇关于在应用程序中,当另一个表单关闭时打开一个表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆