Hi Everyone,
Is it possible for me to customize the default dialog that pops up when .NET encounters an unhandled exception
Thank you.
Hi Everyone,
Is it possible for me to customize the default dialog that pops up when .NET encounters an unhandled exception
Thank you.
Changing the Default Unhandled Exception Dialog
Revanger
I spoke too soon..Your answer seems partially right -- probably I am missing something obvious since I'm new to .NET.
The approach you described allowed me to add a new UnhandledExcepionEventHandler that responds to uncaught exceptions but I was unable to un-hook the default handler that displays the dialog window. So, basically, there were two handlers in place.
Because AppDomain.CurrentDomain.UnhandledException is an event, I am only able to add handlers to it or remove handlers from it. The problem is that there is no way to remove the default handler, as far as I can see.
PhillipWhelan
Ivan B
JeremyPalmer
Mark Wienzek
I'm sorry to be so dense about this. This is a C# Console app. I don't know if that matters.
What is the "e" object The only "ExitApplication" property I can find is for UnhandledExceptionEventArgs class which is in the Microsoft.VisualBasic.ApplicationServices namespace. Is there something equivaluent for C# The UnhandledExceptionEventArgs class in C# does not seem to expose that property.
Why would the VB class expose it but not the C# Again, I'm sorry for this question if it is too basic.
Thanks very much.
SoftAdmin
ETA76
lxwSniper
Igor Sukhov