Hi,
i'm using a win32 timer and when the time elapsed i'd like to trigger
an event. I know I should use delegate but I can't find any example as
I'm not familiar with that notion. Can you help ?
I've done something like that but it doesn't work :
Public Delegate Sub TimerElapsedEve ntHandler(ByVal sender As Object,
ByVal e As TimerElapsedEve ntArgs)
Public Sub Collapse(ByVal sender As Object, ByVal e As
TimerElapsedEve ntArgs)
MsgBox("timer fini")
End Sub
Private m_Collapse As TimerElapsedEve ntHandler = AddressOf Collapse
i'm using a win32 timer and when the time elapsed i'd like to trigger
an event. I know I should use delegate but I can't find any example as
I'm not familiar with that notion. Can you help ?
I've done something like that but it doesn't work :
Public Delegate Sub TimerElapsedEve ntHandler(ByVal sender As Object,
ByVal e As TimerElapsedEve ntArgs)
Public Sub Collapse(ByVal sender As Object, ByVal e As
TimerElapsedEve ntArgs)
MsgBox("timer fini")
End Sub
Private m_Collapse As TimerElapsedEve ntHandler = AddressOf Collapse