当前位置:   article > 正文

SplashScreenManager

splashscreenmanager

第一步:

在程序中拖入: splashScreenManager1 控件

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

第二步:

splashScreenManager1.ShowWaitForm();

第三步:

在过程可以通过以下语句来更改运行过程中的 WaitForm的 Caption 和 Msg

  1. splashScreenManager1.SetWaitFormCaption("请稍后,正在加载中....");     // 标题
  2.  splashScreenManager1.SetWaitFormDescription("正在初始化.....");     // 信息

 第四步:

最后通过以下语句来关闭  WaitForm

splashScreenManager1.CloseWaitForm();

注意: 第三步最好开启另一个线程来操作. 或者添加 Application.DoEvents(); 来保证 WaitForm界面 刷新流畅

参考

DevExpress之SplashScreenManager创建加载动画

https://jingyan.baidu.com/article/db55b609b92a214ba30a2fec.html

c#Loading 页SplashScreenManager的使用

c#Loading 页SplashScreenManager的使用 - 蒙蒙大川 - 博客园

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号