如何在申请过程中一次加载第一个表格? [英] How to load the first form once during the application ?
本文介绍了如何在申请过程中一次加载第一个表格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
我想在应用程序中一次加载第一个表单(例如:config数据表单).我怎么做?请帮帮我
谢谢和最诚挚的问候
[更新]
谢谢shakil0304003!
但这不是我需要的解决方案
我要那个
第一次运行一个应用程序时,将加载一个表单(例如:配置数据表单),而当我再次运行应用程序时,将不加载此表单.
看到了吗?
我该怎么办?
[/Update]
Hi all!
I want to load the first form once during the application (ex : config data form). How do I do that? Please help me
thanks and best regards
[Update]
thanks shakil0304003!
but it''s not my needing solution
I want that
When I run one application the first time, one form (ex: config data form) is loaded, and when I run application again, this form is not loaded.
Do u see?
How do I do that?
[/Update]
推荐答案
您应该使用持久性标志来跟踪您的应用首次执行.
例如,请参见在C#中使用设置 [在.NET Framework中保持应用程序设置[
You should use a persistent flag to keep track of your appllication first execution.
See, for instance Using Settings in C#[^], Persisting Application Settings in the .NET Framework[^].
:)
看看此处 [ ^ ]或 ^ ].
如果有帮助,请投票并接受答案.
Have a look here[^] or here[^].
Please vote and Accept Answer if it Helped.
这篇关于如何在申请过程中一次加载第一个表格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文