Link to home
Start Free TrialLog in
Avatar of biplavo
biplavoFlag for United States of America

asked on

Raising Events from a class library

I am in a scenario where I have made a class library (*.dll) file.
At some point I need to raise an event( from within a class of the *.dll library) of a class(Like Event in the Class shown Below) which is outside or out of the scope of the *.dll library. How do I do it?
Do I need to add interface in that particular class of the *.dll library and implement in the calling class or any technique?
Does anybody have some idea?

Public Class SomeClass

         Public Event SomeEvent
..........

End Class
Avatar of Priest04
Priest04
Flag of Serbia image

In order to call SomeEvent, you would need to have a reference to an object of SomeClass type, or to create a new one.

Goran
Avatar of biplavo

ASKER

I didnot understand quite precisely.
Could you please illustrate withan  example ?
ASKER CERTIFIED SOLUTION
Avatar of Hawkvalley1
Hawkvalley1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, that was what I meant. You should call it the same way as you call button click event. If this class is in external dll, add reference to this dll first.
I answered the question completely and correctly. Shouldn't I get some points?