?
Solved

Catching an ActiveX event in C#

Posted on 2006-04-20
3
Medium Priority
?
433 Views
Last Modified: 2008-03-10
Im using an activex which was developed in C++ in C#, is there any way to catch the events fired by the activeX in C# like we catch them in VC++ applications?
0
Comment
Question by:jyotishb
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
Fahad Mukhtar earned 2000 total points
ID: 16506461
suppose myActiveXControl is your instance name then u can catch the event myActiveXControlEvent in following way:

1. Write myActiveXControl.myActiveXControlEvent +=
2. IDE asks you to press TAB key twice to write event handle to catch the event myActiveXControlEvent
3. So Press TAB key Twice
4. Write code to hande the event
0
 
LVL 19

Expert Comment

by:Fahad Mukhtar
ID: 16507060
do these steps in form_load event
0
 

Author Comment

by:jyotishb
ID: 16508589
cool.. Thanx.. i think it will work now..
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question