G
Guest
How can I determine if a AddHandler already has been specified for a specific
event.
Sub TestEvents()
Dim Obj As New Class1()
...
AddHandler Obj.Ev_Event, AddressOf EventHandler
...
'lets say that i HERE want to check if a AddHandler has been registered on
"Obj.Ev_Event"
Obj.CauseSomeEvent() ' Ask the object to raise an event.
End Sub
I have not understood where actually all event handler connections are
stored. In a global variabel, or on each object ?
Can I use System.ComponentModel.EventHandlerList ? How then do I access it?
Best regards,
Benjamin, Sweden
event.
Sub TestEvents()
Dim Obj As New Class1()
...
AddHandler Obj.Ev_Event, AddressOf EventHandler
...
'lets say that i HERE want to check if a AddHandler has been registered on
"Obj.Ev_Event"
Obj.CauseSomeEvent() ' Ask the object to raise an event.
End Sub
I have not understood where actually all event handler connections are
stored. In a global variabel, or on each object ?
Can I use System.ComponentModel.EventHandlerList ? How then do I access it?
Best regards,
Benjamin, Sweden