I've tried this, but it doesn't seem to work:
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
//suppress ???
}
static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
{
//suppress ???
}