The nice thing about a BackgroundWorker component is that it handles all the
marshalling for you, with a consistent and fairly simple object model. In a
Windows Forms app, this can be a real time-saver for the developer.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Hard work is a medication for which
there is no placebo.
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
DHarry <DH****@discussions.microsoft.com> wrote: Can anybody tell me, whats the main difference between a BackgroundWorker
and
a Thread? What are the advantages/disadvanteges? When use a
BackgroundWorker,
when a Thread?
BackgroundWorker operates in a different thread already. It just
provides a convenient way of reporting progress with all the
marshalling back to the UI thread being done for you.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too