I have a backgroundworker that is running.
The problems comes when you press the closebutton on the form in the upper right corner. This makes the form stuck completely.
The problem is that the Worker doesn´t get a chance to finish and return the backgroundWorker1_RunWorkerCompleted event.
How can I come around this problem. I try to put:
Application::Exit() in the Form Closing event but that doesn´t work either.