astrodestino
IS-IT--Management
Hi!
my code:
Private Sub timer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles timer.Tick
counter=counter+1
End Sub
Timer interval its 1000
the thing is that every interval counter is counter+2 not +1
Y added a msgbox and its ok but every interval the timer will execute two times counter=counter+1 so if I want to trigger some action when couter = 10 I have to trigger it when counter=20 if not it will be triggered too soon.
Can that be fixed?
Tnx!
my code:
Private Sub timer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles timer.Tick
counter=counter+1
End Sub
Timer interval its 1000
the thing is that every interval counter is counter+2 not +1
Y added a msgbox and its ok but every interval the timer will execute two times counter=counter+1 so if I want to trigger some action when couter = 10 I have to trigger it when counter=20 if not it will be triggered too soon.
Can that be fixed?
Tnx!