Closing form while background task is running

Answered
0
0

If you have a form.showdialog that is performing a background task that eventually updates the UI, but it is closed before it is finished, I get “cannot access a disposed object” error.

What’s the best way to handle this?

Thanks,

Andrew

 

  • You must to post comments
Best Answer
0
0

There is the property IsDisposed or Disposing.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.