views:

51

answers:

1

I have a .NET MDI form based application.

I would like to contain errors thrown in a child form within that form so I can invalidate it without closing the entire application.

Is there a solution that does not involve catching all errors in Application.ThreadException?

+1  A: 

You cannot capture all exceptions triggered from a particular windows form in one place. The solution for your problem is detecting the exact region within the form that may potentially trigger an invalidation exception and invalidate the form on the catch.

Ciwee