biplavo
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
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
ASKER
I didnot understand quite precisely.
Could you please illustrate withan example ?
Could you please illustrate withan example ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?
Goran