G
Guy Cohen
Hi all
I wrote a small demo program to understand timers and delegation - and its
working fine.
However, I would like to use the timer in a DLL(Class)
When I compile the code:
Protected Sub Timer2_Elapsed(ByVal sender As Object, ByVal e As
ElapsedEventArgs)
If Me.InvokeRequired Then
Dim MyIncrement As New IncrementDelegate(AddressOf MyTimerHander)
Me.BeginInvoke(MyIncrement)
End If
End Sub
I get the error InvokeRequired is not a part of <my class name goes here>
Please advise
TIA
Guy Cohen
I wrote a small demo program to understand timers and delegation - and its
working fine.
However, I would like to use the timer in a DLL(Class)
When I compile the code:
Protected Sub Timer2_Elapsed(ByVal sender As Object, ByVal e As
ElapsedEventArgs)
If Me.InvokeRequired Then
Dim MyIncrement As New IncrementDelegate(AddressOf MyTimerHander)
Me.BeginInvoke(MyIncrement)
End If
End Sub
I get the error InvokeRequired is not a part of <my class name goes here>
Please advise
TIA
Guy Cohen