Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX Exception Handling

Status
Not open for further replies.

moabiker31

Programmer
Nov 6, 2004
35
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top