I know that the ThreadExceptionDialog is thrown for all exceptions that occur in the program.
My problem is that the dialog form shows assembly information along with the Exception details.
Is there a way to hide the assembly information and show only the exception information?
You can “disable” this behavior completely by calling
Application.SetUnhandledExceptionMode()in theMain()method of your application. As far as I know, there isn’t a way to hide just the assembly information from the defaultThreadExceptionDialog. However, if you set your application to handleThreadException, you can display your own information. If you don’t override it, you get the normalThreadExceptionDialogand the user may quit or continue. Continuing is not a good outcome 99.99% of the time.Please review the MSDN document for more information.