How do i fire event to a specipic component in COM

Posted on 2003-03-14
Medium Priority
Last Modified: 2013-11-26
Hi Experts,

I guess you can help me out in this : I have 5 ActiveX components and a client. Client fires an event which all the 5 components have to listen. But before firing the event my client knows which component should process this event. How do i fire event to the specific component as all 5 components can process the event? I cannot fire seperate event for seperate component.
Question by:ishwar
1 Comment

Accepted Solution

kelly_mrt earned 750 total points
ID: 8142783
In this scenario you should ideally call a method of the ActiveX component - i.e. you know the target component.
Alternatively, you can add a parameter to the event (assuming you're coding the controls), for example an ID parameter and only the control with the corresponding ID will respond.  However the first, direct invocation, scenario is more efficient as the other controls will not have to handle an event that is not meant for them.

Hope this helps,


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

621 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