private void ProgressDialogForeground_Load(object sender, EventArgs e) { Progress.SyncContext = SynchronizationContext.Current; _messageLabelProgress.SyncContext = SynchronizationContext.Current; }