Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.