Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to put Events in an Interface ?

Status
Not open for further replies.

MarkRuse

Programmer
Aug 11, 1999
29
GB
Hi,

I am starting to fiddle with Interfaces, and have created an ITimable interface. I wish to define some events that classes implementing this interface have to raise back to the client code, namely Complete. When I implement the ITimable in a class, I cannot raise the Complete event against the interface. Is this possible ?

Thanks


Mark Ruse
 
In the class that implements your interface, are you sure that in the IMPLEMENTS line you are including the keyword WITHEVENTS?

e.g. (syntax below is from my head, so it may not be right):


IMPLEMENTS WITHEVENTS ITimable



TJRTech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top