Custom Exception
-
Hi Guys! we know that there is a way to handle custom exceptions in asp dot net by specify the error page. is there any way to do the same in csharp windows form. i.e custom windows form. i don't want to write try/catch block in my programm in all places.i just want to write it once where it can handle all the program exception. is there a way. i want to write only one try/catch block that can handle all the exceptions of the whole applications(windows Application), which off-course may contains multiple windows forms Ali Khan
-
Hi Guys! we know that there is a way to handle custom exceptions in asp dot net by specify the error page. is there any way to do the same in csharp windows form. i.e custom windows form. i don't want to write try/catch block in my programm in all places.i just want to write it once where it can handle all the program exception. is there a way. i want to write only one try/catch block that can handle all the exceptions of the whole applications(windows Application), which off-course may contains multiple windows forms Ali Khan
AppDomain.UnhandledException
You can get the currentAppDomain
withAppDomain.Current
.-----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----