MsgBox Popup on Error

  • Thread starter Thread starter Chris Fink
  • Start date Start date
C

Chris Fink

I am noticing an unexpected msgbox popup in my windows application. I have
an outer catch that should be preventing this msgbox from appearing. Does
anyone know how to avoid this from happening? All errors are being logged
in the catch (exception e), so I dont want the msgbox to display.

TIA
 
Try adding a listener to the Application.ThreadException event from the Ctor
of your main app class. Note that you can't do much more than log the
exception before quitting if your event handler gets called.

James
 
Back
Top