private void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { //do nothing }