I have a program that performs some copy jobs (via File.Copy), which can take several minutes. When the user brings another window to the foreground, at this time the program window becomes empty, since it does not redraw itself.
Now I want to show the ProgressBar in an additional window in the center of the screen, but this window is also empty.
Therefore, I run it in another thread that did not help.
I'm sure someone has done this before, but I cannot find a working example. Any ideas?
multithreading c # progress-bar winforms
ihavenoaccount
source share