第一步:

在程序中拖入: splashScreenManager1 控件

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

第二步:

splashScreenManager1.ShowWaitForm();

第三步:

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

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

第四步:

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

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

相关文章:

  • 2021-07-04
  • 2021-05-11
  • 2021-08-11
  • 2022-12-23
  • 2022-01-14
猜你喜欢
  • 2021-06-06
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案