Background Worker or New Thread?
Hi guys,
My application is making the user wait while printing documents due to the logon issues of Crystal Reports. I am not used to work with threads so I am asking you for advice. Should I use background worker or should I programmatically start a new thread? I don't know, maybe background worker starts a new thread itself. Thanks in advance!!
Re: Background Worker or New Thread?
Re: Background Worker or New Thread?
When you call the RunWorkerAsync method of a BackgroundWorker it raises its DoWork event on a thread pool thread.
Re: Background Worker or New Thread?
Re: Background Worker or New Thread?
Use the background worker, as that will handle all the delegates you need if you want to access the form to update some user interface items ect in the ProgressChanged event, there is also the work complete event. If you use a thread you will have to create delegates and invoke each control you want to access.