软件加载前显示加载中画面

  1. private DevExpress.Utils.WaitDialogForm WaitBeforeLogin = null;  
  2. //弹出登录提示画面   
  3. new Thread((ThreadStart)delegate  
  4. {  
  5.     WaitBeforeLogin = new DevExpress.Utils.WaitDialogForm("请稍候...""正在加载应用系统");  
  6.     Application.Run(WaitBeforeLogin);  
  7. }).Start();  
  8. ...  
  9. //关闭登录提示画面   
  10. WaitBeforeLogin.Invoke((EventHandler)delegate { WaitBeforeLogin.Close(); });  
posted @ 2012-08-07 10:53  咸鱼公子  Views(450)  Comments(0Edit  收藏  举报