moabiker31
Programmer
Is there a way to have a project-wide exception handler in a C# ActiveX control I created? If there is, where does it go? In a windows application, I normally put:
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(OnUnhandledException);
in the Main() of Program.cs to handle exceptions that i don't have try/catch blocks for. But there isn't a Program.cs file in the windows forms control library project. This is the first activex control I've created. Any advice is appreciated.
Thanks,
Jeff
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(OnUnhandledException);
in the Main() of Program.cs to handle exceptions that i don't have try/catch blocks for. But there isn't a Program.cs file in the windows forms control library project. This is the first activex control I've created. Any advice is appreciated.
Thanks,
Jeff