How to handle Component error in .NET...?

  • Thread starter Thread starter ¿ Mahesh Kumar
  • Start date Start date
¿

¿ Mahesh Kumar

Hi,

I have placed an ActiveX component in my WinForms application. It was
developed in VB. But i've added in my C# application.
(1) How i can handle the component errors thru custom error handling...?


Maheshkumar.R
 
Mahesh,

You would do this the same as any other COM component. You can wrap
your calls in a try/catch block, and catch COMException types, which will
have the COM exceptions thrown from the component.

Hope this helps.
 

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