开发者

Containing thrown exceptions in MDI child forms

开发者 https://www.devze.com 2022-12-16 11:14 出处:网络
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 i开发者_Go百科t without closing the entire application.

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 i开发者_Go百科t without closing the entire application.

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号