473,385 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
Nov 17 '05 #1
1 1292
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"¿ Mahesh Kumar" <cy**********@gmail.com> wrote in message
news:uu**************@TK2MSFTNGP09.phx.gbl...
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

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ramesh K | last post by:
Hi All, Here is the scenario where i am having the problem. There is a COM component let us say "A" is running under DLLHOST . "A" creates normal COM component "B". To debug the component B i...
3
by: Chris | last post by:
I created a COM+ component and I need to pass an event to the client app. Here is my scenario. I have this component that checks if a product number is valid ..................... Public...
6
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
0
by: Ramesh K | last post by:
Hi All, Here is the scenario where i am having the problem. There is a COM component let us say "A" is running under DLLHOST . "A" creates normal COM component "B". To debug the component B i...
5
by: Ignacio X. Domínguez | last post by:
Hi. I have created a component (System.ComponentModel.Component) that I place on a form. Is there a way of obtaining the Form.Handle of the form where I have placed my component? Thank you
17
by: ahaupt | last post by:
Hi all, I'm currently writing a load of class libraries, but not the main application iteslf. I want to provide some method for reporting errors back to the main application. At the moment...
0
by: Ian Harding | last post by:
Today, for no obvious reason, I started getting this error when attempting to create an instance of a COM+ hosted component (C++/ATL COM) from my .NET Serviced component (both hosted in the same...
1
by: Heineken | last post by:
Hi, I have a problem with the clientsocket component in Borland C++ Builder v6.0 - don't know if this is the correct forum. :-S The clientsocket component is used to connect to a serversocket...
0
by: DevilInside | last post by:
Hi I'm using in my C# application the component DHTMLEdit. This component works great until I install it on another computer via a setup file. I always get this error when I'm trying to open a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.