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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top