C# Form 'stops working' if I switch to new window during process or change focus
Posted on 2011-02-22
I have an application that I developed with c#. The strange thing is that whilst the application is running, a lengthy process I might add, if I switch to another window or minimise or anything that makes the window lose focus, the form stops working, so to speak.
The process continues but until it finishes I cannot see anything. The progress bar, for example, appears to stop working and may give an end user the impression the program has crashed, when it's not the case.
Why is this?