Calling ShowDialog in BackgroundWorker

后端 未结 4 928
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-11 17:46

I have a WinForms application in which my background worker is doing a sync task, adding new files, removing old ones etc.

In my background worker code I want to sho

4条回答
  •  渐次进展
    2020-12-11 18:26

    You should bring up the dialog before you run the backgroundworker. And in the progresschanged-event, you can update the dialog.

提交回复
热议问题