progress bar not progressing

前端 未结 4 1411
青春惊慌失措
青春惊慌失措 2021-01-28 07:17

I have a program which is updating a table in sqlserver, I have a form which I want to show the progress of this, the progress bar is incrementing but this is not being displaye

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-28 07:29

    Yes you should use Background Worker, however it might not help, we would need to see bindings and everything else, to use background worker use something like this:

    Window.Dispatcher.BeginInvoke((Action)(() =>
            {
                con.progressBar1.PerformStep();
            }
    

提交回复
热议问题