How can I make the progress bar update fast enough?

后端 未结 9 1621
礼貌的吻别
礼貌的吻别 2021-02-08 20:40

I\'m using a progress bar to show the user how far along the process is. It has 17 steps, and it can take anywhere from ~5 seconds to two or three minutes depending on the weath

9条回答
  •  猫巷女王i
    2021-02-08 21:00

    First. I'd never turn off the CheckForIllegalCrossThreadCalls option.

    Second. Add a Refresh() after you update the progress. Just because you're doing work in a different thread doesn't mean your GUI thread is going to get around to updating.

提交回复
热议问题