I’ve been playing with this for a couple days and can’t get it to work so I’m wondering if I’m doing something wrong or if this isn’t possible.
I have a main window that calls another window with a timer and thread and a progress bar. This of this as a generic progress bar that can be called for any long running process.
The main window makes a call to a method on the progress bar window with a parameter telling it which process to run on the main window. In the run event of the thread, it calls this process which is running in a loop. Inside that loop it updates some properties on the progress bar window which in turn are used to update the progress bar in the timer’s action event.
It seems to work except for one thing. The progress bar window is displayed and the progress bar is update, but the progress bar window remains open and it never returns to the main window.