throw exception inside an 'application.run()'

  • Thread starter Thread starter babylon
  • Start date Start date
B

babylon

i have sth like
try
{
Application.Run(new myform());
}
catch (Exception e)
{
}
however, if I throw exception inside "myform"
the exception is not caught...how come?!?

thx
 
Try using the Application.ThreadException event (from memory, could be named slightly different).
 
Back
Top