在form_load之前声明一个布尔值 [英] declare a boolean before the form_load
本文介绍了在form_load之前声明一个布尔值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以通过考虑表单loading来声明一个布尔变量.Ex:我需要在表单加载false之后加载true之前声明一个布尔变量。
Can I declare a boolean variable by considering form loading.Ex:I need to declare a boolean variable, before the form loading "true" after the form loading "false".
推荐答案
使用Form_Load
事件。
您可以更容易地从布尔值false开始,然后将其设置为form_load事件完成后为true。
bool标志在表单加载之前保持为false。
Use theForm_Load
event.
It will be much easier for you to start with a boolean false and then set it to true once the form_load event completes.
The bool flag remains false until the form is loaded.
这篇关于在form_load之前声明一个布尔值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文