The event runs on the 2nd thread. A Windows form is a Single-Threaded
Apartment. If you're working with .Net platform 2.0, you might want to check
out the BackgroundWorker component:
http://msdn2.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx
Otherwise, here are a few articles that will help even if a BackgroundWorker
is not available:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/wi
nforms06112002.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/wi
nforms08162002.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/wi
nforms08162002.asp

Signature
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
What You Seek Is What You Get.
> Hi,
>
[quoted text clipped - 13 lines]
>
> Li
Li Weng - 18 Jul 2006 19:45 GMT
Thanks a lot! Kevin.
Li
> The event runs on the 2nd thread. A Windows form is a Single-Threaded
> Apartment. If you're working with .Net platform 2.0, you might want to check
[quoted text clipped - 26 lines]
> >
> > Li