, , , - - (a BackgroundWorker, , - , ).
, (.. Dispatcher.BeginInvoke), , , - ...
BackgroundWorkerreveals events such as ProgressChanged(which you can periodically call from your working method) or RunWorkerCompleted(which fires when the main method of work completes).
Using Clipboard.SetTextin any of these events should not throw an exception that you see, and this seems like the preferred way to do something in the user interface thread when working with BackgroundWorker.
source
share