Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / May 2006

Tip: Looking for answers? Try searching our database.

Winform not closing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rykie - 08 May 2006 05:09 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.