VB.NET progressbar backgroundworker

后端 未结 6 2134
梦如初夏
梦如初夏 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:37

    From your requirements it seems to me that you are looking for:

    Application.DoAction()
    

    I have experienced in an application that there was a need to load 2000 to 3000 items related detail from xml and the implemented process was reading items one by one which hangs up the process. Using the above line in the loop resolved my issue. The UI did not hang-up and user was able to work on other forms. This appeared progressbar is now as background process (upto some extent) to me.

    Hope it helps!

提交回复
热议问题