2010-12-19 52 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,使表单模式的一种形式。

相关问题