Application.ThreadException where?

  • Thread starter Thread starter Robert Scheer
  • Start date Start date
R

Robert Scheer

Hi.

I am using Application.ThreadException together with a sub to catch
unhandled exceptions on one form. My application has 4 forms. Do I
need to add an event handler for the Application.ThreadException for
each one of my forms?

Thanks,
Robert Scheer
 
* (e-mail address removed) (Robert Scheer) scripsit:
I am using Application.ThreadException together with a sub to catch
unhandled exceptions on one form. My application has 4 forms. Do I
need to add an event handler for the Application.ThreadException for
each one of my forms?

No, you only need one handler.
 
Robert,
As Herfried stated, you only need one ThreadException handler, I normally
put the AddHandler for it in my Sub Main before I call Application.Run.

Hope this helps
Jay
 
Back
Top