in a Windows Forms Control, I make use of the ThreadExceptionEventHandler where I handle exceptions. Unfortunately, if an application uses my Windows Forms Control it appears that the application’s exceptions get trapped by the ThreadExceptionEventHandler of my Windows Forms Control.
Is there another event handler that I can use that would limit the scope of the ThreadExceptionEventHandler to only the exceptions that happened in my Windows Forms Control ?
Thank you
In general, a UserControl should not interfere with Application exception handling. Just take care of your local business, hands of the rest.
If your Control starts Threads, they should normally take care of exceptions. Anything left over is not the Controls responsibility.