当前位置:   article > 正文

新建Splash Screen窗体等待信息窗口_splashscreenmanager.default.sendcommand(frmsplashs

splashscreenmanager.default.sendcommand(frmsplashscreen.splashscreencommand.

在程序中拖入: splashScreenManager1 控件

在需要处理的地方 使用以下语句来打开 WaitForm窗体(当然需要在 splashScreenManager1控件中绑定一个 WaitForm窗体(自己添加或者直接在这个控件属性里就可以添加))

新建Splash Screen窗体等待信息窗口

    SplashScreenManager.ShowForm(typeof(WaitForm1)); //调用

   SplashScreenManager.CloseForm(true);

======

在主窗体构造函数中调用它

1

2

3

4

5

6

SplashScreenManager.ShowForm(typeof(FrmStart)); //调用

InitializeComponent();

SplashScreenManager.Default.SendCommand(FrmStart.SplashScreenCommand.UpdateMessage, "正在检查应用环境...");

//更新启动界面

//其他耗时的操作

//….

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/309554
推荐阅读
相关标签
  

闽ICP备14008679号