http://stackoverflow.com/questions/2806814/c-backgroundworker-runworkercomple
ted-event
If the BackgroundWorker was created from the UI thread, then the
RunWorkerCompleted event will also be raised on the UI thread.
If it was created from a background thread, the event will be raised on an
undefined background thread (not necessarily the same thread, unless you're
using a custom SynchronizationContext).
Interestingly, this doesn't seem to be all that well-documented on MSDN.
The best reference I was able to find was here:
The preferred way to implement multithreading in your application is to
use the BackgroundWorker component. The BackgroundWorker component uses an
event-driven model for multithreading. The background thread runs your
DoWork event handler, and the thread that creates your controls runs your
ProgressChanged and RunWorkerCompleted event handlers. You can call your
controls from your ProgressChanged and RunWorkerCompleted event handlers.
��
�� ncudeutjssbb (ncudeutjssbb) �拇������到: ��
: ������������一直��为BackgroundWorker��RunWorkerCompleted��handler�������叱�
: �����械摹���为��RunWorkerCompleted��handler���芄���UI�丶����写��?����要�魏�
: �������谩��������系�����也������么说�模�����去������酆芎��?����叶源�确�挪�
: �伞�
: ��������������烁�实�,却���掖���劬����匣�����说��直����源���:
: using System;
: using System.ComponentModel;
: using System.Threading;
: namespace ���叱�实��2
: {
: .................������省�裕�
--
��通���\魔����女����色�蕙����`���雪`��
����蕙����`���雪`���� 魔�h���榨����ルス�雪`����
魔��沙 ��������私? �������省�������巍���女������
[m[1;33m�� ��源:����水思源 bbs.sjtu.edu.cn��[FROM: 220.242.154.221][m