VB.NET progressbar backgroundworker

后端 未结 6 2131
梦如初夏
梦如初夏 2020-11-28 13:49

When my application starts, and it has just been upgraded, I am doing a local database update (sqlite).

It is like that: The user starts my app, and then I start th

6条回答
  •  一向
    一向 (楼主)
    2020-11-28 14:29

    You can raise an event in the background worker and then update the progress bar on the UI thread. You can raise events in your class and handle them in the form. When they are raised, you can call reportprogress() on the background worker.

    some more info:

    Performing long running UI changes without blocking the main thread

提交回复
热议问题