How to use Progress bar during loading an xml File

前端 未结 4 1922
伪装坚强ぢ
伪装坚强ぢ 2021-01-06 05:32

I want to show progress bar during loading a Remote xml file. I am using Windows Application Form in Visual C# 2008 Express Edition.

private void button1_Cl         


        
4条回答
  •  旧时难觅i
    2021-01-06 06:03

    The problem is that you are using window thread, and the window can not been redrawn, until you finish button1_Click.

    Use BackgroundWorker, you can report progress by calling backgroundworker.ReportProgress

提交回复
热议问题