I have a simple csharp form with a 'Go' button on it. This event
launches a external exe successfully but the form color becomes white
and does not repaint while that external program runs, usually about 10
seconds.
I tried creating a thread in seperate class to run that process instead
on running it from main thread. This successfully keeps my form from
becoming distorted. However, I do not have any control over when that
thread finshes or a way to notify the form that it finsished.
Is there a way to run this thread and have the main thread wait until
thread completes before main thread continues to process?
Is there a way to have the thread which runs the external exe and
notify or poke the form to say, hey I've finshed running the exe with
this error code for example?
Perhaps I am approaching this all wrong, any suggestions on how to
approach this in a better way?
Thanks in advance.
Rookie csharp guy