DevExpress 顯示進度條


1、使用了DevExpress的WaitDialogForm

1  WaitDialogForm waitDialogForm = null;
2             new Thread((ThreadStart)delegate
3             {
4                 waitDialogForm = new WaitDialogForm("請稍后...", "正在加載系統應用",new Size(300,40),this);
5                 Application.Run(waitDialogForm);
6             }).Start();
7             //TODO:
8             waitDialogForm.Invoke((EventHandler)delegate { waitDialogForm.Close(); });

2、splashScreenManager

首先添加splashScreenManager組件->右上角小三角->點擊“Add Waiting Form”->將Active Splash Form設置為剛剛設置的窗體

在需要設置進度的地方添加:

1  private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
2         {
3             splashScreenManager2.ShowWaitForm();
4             splashScreenManager2.SetWaitFormCaption("演示");
5             splashScreenManager2.SetWaitFormDescription("描述信息");
6             //TODO:
7             splashScreenManager2.CloseWaitForm();
8         }

效果如下:

如果需要啟動界面:首先添加splashScreenManager組件->右上角小三角->點擊“Add SplashScreen”->將Active Splash Form設置為剛剛設置的窗體;其他步驟一樣;

3、progressPanel

4、progressBarControl

5、marqueeProgressBarControl


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM