private void ProgressDialog_Load(object sender, EventArgs e) { Progress.SyncContext = SynchronizationContext.Current; _backgroundWorker.RunWorkerAsync(_backgroundWorker); }