everybody I am working on a VSTO Outlook addin which is uploading emails to sharepoint document library but the critical problem is that even using BackGroundWorker I am unable to use Outlook while the uploading process is going on. The code is as follows:
System.Threading.SynchronizationContext.SetSynchronizationContext(new WindowsFormsSynchronizationContext());
bw = new BackgroundWorker();
bw.WorkerReportsProgress = true;
bw.DoWork += delegate(object sender, DoWorkEventArgs e) { bw_DoWork(sender, e, uploadData); };
bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted);
bw.ProgressChanged += new ProgressChangedEventHandler(bw_ProgressChanged);
if (!bw.IsBusy)
{
bw.RunWorkerAsync();
}
If anybody knows how to make main UI i.e. Outlook usbale please help me
