DevExpress 中 WaitForm 使用

第一步:

在程序中拖入: splashScreenManager1 控件

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

第二步:

splashScreenManager1.ShowWaitForm();

第三步:

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

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

第四步:

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

splashScreenManager1.CloseWaitForm();
注意: 第三步最好开启另一个线程来操作. 或者添加 Application.DoEvents(); 来保证 WaitForm界面 刷新流畅
原文地址:https://www.cnblogs.com/wordgao/p/4572452.html