BackgroundWorker completes before DoWork

前端 未结 2 1316
天涯浪人
天涯浪人 2020-12-12 00:31

I\'m using a background worker to handle the loading of a file to stop my ui from freezing however it seems that the RunWorkerCompleted is finishing before my <

2条回答
  •  时光取名叫无心
    2020-12-12 01:07

    It maybe possible your background worker actually does not take much time and complete before the dialog is shown. I'd suggest shift the background worker initialization and start up code to PleaseWait's Form_Load or Form_Shown

提交回复
热议问题