473,320 Members | 1,856 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,320 software developers and data experts.

raising events in dynamically loaded com class

hi all,

in my c# app i dynamically load a extern com library.
in this lib is a class with events.

when i inspect the methods of this class i get to methods:
remove_TestEvent
add_TestEvents

How can I use this methods for applying event handlers in my c# app.

thank you!
ingo
Nov 17 '05 #1
2 1234
Hello,

comObject.TestEvent += new SpecificEventHandler(/* ... */);
comObject.TestEvent -= new SpecificEventHandler(/* ... */);

[Events Under the Hood]
http://msdn.microsoft.com/library/de...rp05172001.asp

greets

On Fri, 22 Jul 2005 11:03:59 +0200, Ingo Beyer
<ingo*nospam*@*nospam*heiligenwald.com> wrote:
hi all,

in my c# app i dynamically load a extern com library.
in this lib is a class with events.

when i inspect the methods of this class i get to methods:
remove_TestEvent
add_TestEvents

How can I use this methods for applying event handlers in my c# app.

thank you!
ingo

Nov 17 '05 #2
Hello,

comObject.TestEvent += new SpecificEventHandler(/* ... */);
comObject.TestEvent -= new SpecificEventHandler(/* ... */);

[Events Under the Hood]
http://msdn.microsoft.com/library/de...rp05172001.asp

greets

On Fri, 22 Jul 2005 11:03:59 +0200, Ingo Beyer
<ingo*nospam*@*nospam*heiligenwald.com> wrote:
hi all,

in my c# app i dynamically load a extern com library.
in this lib is a class with events.

when i inspect the methods of this class i get to methods:
remove_TestEvent
add_TestEvents

How can I use this methods for applying event handlers in my c# app.

thank you!
ingo

Nov 17 '05 #3

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

Similar topics

4
by: serge calderara | last post by:
Dear all, I have a class wich is raising events as normally it should do. having a form in the same assembly wich is catching those events works fne. Raise events gets catch normaly within the...
7
by: cider123 | last post by:
I'm coding a project using the following article as reference: http://www.codeproject.com/csharp/DynamicPluginManager.asp In this type of project, plugins are loaded dynamically into a Plugin...
0
by: Ingo Beyer | last post by:
hi all, in my c# app i dynamically load a extern com library. in this lib is a class with events. when i inspect the methods of this class i get to methods: remove_TestEvent add_TestEvents ...
0
by: Greg Park | last post by:
I have many user controls loading into a web page using Page.LoadControl However, I'm unable to figure out how to raise an event when a button is click or a check box is checked. I can have...
1
by: Earl Teigrob | last post by:
PROBLEM: When a user control is loaded into a PlaceHolder control more than once, the events do not fire on the first click of a control on the dynamically loaded user control. In other words, the...
5
by: karthick raja | last post by:
Am experiencing a problem intercepting the events from controls added dynamically to a Placeholder control at runtime. Is there any way that I can write an event handler on the page which will be...
3
by: Franky | last post by:
IN vb.Net Class clsCommande Inherits CollectionBase and Class clsProduct clsCommand contain a IList of clsProduct
4
by: Dave A | last post by:
I am developing a somewhat complex component at the moment and coincidently I am also reading the Framework Design Guidelines book. After reading the section about event raising I have re-written...
2
by: Gman | last post by:
Hi, I have created a usercontrol, a grid control essentially. Within it I have a class: clsGridRecord. I have coded the events such that when a user clicks on the grid, say, the events occur on...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.