Update progress bar in another form while task is running

前端 未结 3 806
盖世英雄少女心
盖世英雄少女心 2021-02-02 04:41

**Ultimately I am going to have four tasks running concurrently and have another form that contains four progress bars. I would like for each progress bar to update as it\'s wo

3条回答
  •  伪装坚强ぢ
    2021-02-02 05:15

    .ShowDialog is a blocking call; execution won't continue until the dialog returns a result. You should probably look in to a BackgroundWorker to process the work on another thread and update the dialog.

提交回复
热议问题