سؤال

I have created an add-in for visual studio which functionally all works well. However, the process can take a while and i would like to yield control back to the user every once in a while.

Any ideas on how to do that ?

Cheers

هل كانت مفيدة؟

المحلول

Call System.Windows.Forms.Application.DoEvents(). Or move processing to a background thread.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top