Guys and gals,
I have a very simple win app. 2 forms. The main form and the feedback
form. The feedback form is only supposed to give feedback to the user
as to the process running.
I use vs.net2005 and I use a background workerprocess to start the job
and then I open the feedback form and once done I call
Feedback.Close(), but it turns white, get a not responding message and
crashes. There is no code on the Feedback.vb form. All i have on that
form is a couple of labels and a progressbar.
If I only call Feedback.Show() and Feedback.Close() it opens and closes
without a problem, but it seems that when I change the labels etc on
that form it does not want to close.
any light on this matter would be appreciated.
Ryk
Rykie - 08 May 2006 05:33 GMT
Ok, I have found the problem.
It seems that when you open the form from inside the backgroundworker
thread it gives the above effect. I am not sure why, but I will take it
for granted from now on that you cannot open a new from from inside a
background worker thread.
Ryk