I have used a timer with an interval of 3000. How do I see tell the programme to start function1 when the timer is 1000? In other words I am asking for a counter for the timer function.
Printable View
I have used a timer with an interval of 3000. How do I see tell the programme to start function1 when the timer is 1000? In other words I am asking for a counter for the timer function.
This should do the trick :)
VB Code:
Private Sub Timer1_Timer() Static intTimerCount As Integer intTimerCount = intTimerCount + 1 If (intTimerCount = 1) Then Call MySub End If End Sub
Was Sanj's code not what you are looking for?
http://161.58.186.97/showthread.php?s=&threadid=83114
Yes, it's working now, thanks!