2010-12-19 16 views
0

我在C#上工作。我想在c#中創建一個桌面(而不是web)應用程序。這裏我需要像web一樣彈出窗口。當彈出窗口出現時,用戶無法訪問任何如網頁加載面板屬性模型對照=真。我的應用程序的工作流程是:在桌面應用程序中如何創建彈出進度條

Popup appear 
Event Start 
    Event Complete 
    Popup close 
Then Perform rest of the application 

private void timer1_Tick(object sender, EventArgs e) 
     {    
if (progressBar1.Value >= 200) 
      { 
       progressBar1.Value = 0; 
       GetAllData();//When this Method active .Progress bar show it's //progressing.After complete the work progressbar will hide.How can i measure how much //time does the computer needs to complete this method work. 
       timer1.Stop(); 
      } 
      progressBar1.Value += 20; 
} 

回答

1

假設你的彈出窗口,你可以使用ShowDialog而不是Show,使表單模式的一種形式。

相關問題