1

I have a VisualStudio Add-in (plug-in), when the function of this Add-in is triggered, it will take a few seconds to finish. During this period, the UI is blocked. How can I avoid blocking the UI?

2
  • Is this an add-in you wrote or maintain the code for? Or is it a 3rd-party add-in? Commented Apr 9, 2013 at 21:52
  • This is a add-in that I'm writing. Commented Apr 10, 2013 at 9:11

1 Answer 1

1

Do the actual work in a thread such as a BackgroundWorker. This will keep the UI thread responsive since it isn't handling the expensive operation.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.