Here is the code:
Public Class Form1
Dim Count As Integer = 0
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Count += 1
TextBox1.Text = Count
End Sub
End Class
That's all there is to it. I set Timer.Interval to 100 (which means it should go through the code 10 times per second) and Timer.Enabled to True.
Yet, when i start the application, when "Count" reaches 600, my reliable watch shows me that 1:04 seconds have passed.
If I shorten the intervals the timer becomes even less precise.
Is this a known problem? My system clock seems to be working just fine and i have a new Vaio, so i doubt it's the computer's fault.
Please help me! :confused:
Edited by Jaan, 15 November 2009 - 12:17 PM.
Please use code tags when you are posting your codes !


Sign In
Create Account

Back to top









