Hi
I am used to using addHandler to process events from timers created in code. Now I was hoping to be able to do the same with other classes - but I don’t seem to be able to.
For example - if I have the code:
dim myClass1 as MyClass
AddHandler myClass1.myEvent addressOf on_myEvent
and the handler method:
[code]Private Sub on_myEvent(sender as myClass)
End Sub[/code]
Then I get the item does not exist compiler error against AddHandler myClass1.myEvent, even though myClass defines an event called myEvent.
Am I doing something wrong or is AddHandler confined to Timers and Threads as in the examples?
Jim