} void backgroundWorker1_DoWork(object sender,DoWorkEventArgs e){/Get the BackgroundWorker that raised this event.BackgroundWorker worker=sender as BackgroundWorker;Assign the result of the computation/to the Result ...
BackgroundWorker对象的ReportProgress方法用于向主线程返回后台线程执行的实时进度。下面是子窗体的代码:1 using System;2 using System.Collections.Generic;3 using System.ComponentModel;4 using System.Data;5 using System.Drawing...