• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 447
  • Last Modified:

Catching an ActiveX event in C#

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
jyotishb
Asked:
jyotishb
  • 2
1 Solution
 
Fahad MukhtarDistinguished EngineerCommented:
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
 
Fahad MukhtarDistinguished EngineerCommented:
do these steps in form_load event
0
 
jyotishbAuthor Commented:
cool.. Thanx.. i think it will work now..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now