Winform not closing

  • Thread starter Thread starter Rykie
  • Start date Start date
R

Rykie

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
 
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
 
Back
Top