I have a program that launches a batch file that does some processing. If I open another application and or my application loses the focus and the new window opens on top of my application the main form does not refresh or redraw itself. I also get the message to "switch to another program..".
My batch uses the "WaitForSingleObject" API to wait for the batch to terminate.
How can I fix this problem?