Hi All,
I'd like to be able to display a nice custom form to the user when any
exceptions occur within my Windows Forms application. In asp.net I would
use the global exception event that yuo can handle in global.asax. Is
there something similar in Windows Forms?
If there isnt something similar, how could I go about catching
exceptions without having to try catch everything I do?
Would a try catch in the Main() method work?
Many thanks
Simon
Michael C - 12 Feb 2007 21:03 GMT
> Hi All,
>
[quoted text clipped - 5 lines]
> If there isnt something similar, how could I go about catching exceptions
> without having to try catch everything I do?
Type Application.ThreadException +=
and follow the intellisence (or push F1)
Michael
Simon Harvey - 13 Feb 2007 15:26 GMT
Cool - I thought there was something like that.
Many thanks for your help
Kindest Regards
Simon