Catching an ActiveX event in C#

Posted on 2006-04-20
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?
Question by:jyotishb
    LVL 19

    Accepted Solution

    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
    LVL 19

    Expert Comment

    do these steps in form_load event

    Author Comment

    cool.. Thanx.. i think it will work now..

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Article by: Ivo
    C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video discusses moving either the default database or any database to a new volume.

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now