Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replacing the standard exception/error form in .net

Tags:

c#

.net

winforms

I was thinking, is it possible to "override" or maybe replace the standard winforms .net Exception form??

I am talking about this dude:

alt text

Is it possible, during the scope of the hole program, to override this windows? I mean automatically, without having to perform try/catch.

like image 342
Daniel Dolz Avatar asked Nov 01 '10 12:11

Daniel Dolz


1 Answers

You can handle System.Windows.Forms.Application.ThreadException event to show your custom message.

like image 137
Andrew Bezzub Avatar answered Oct 07 '22 01:10

Andrew Bezzub