What do you want to say
I write a code as follow to detect the timer event(System.timers.timer).timer1.interval=100
timer1.AutoReset=Ture
timer1.enable=false
'My test code
Imports vb = Microsoft.VisualBasic 'above all codes
Dim startime As Single
Dim sresult() As Single = New Single(10000) {} 'record each start time
Dim i As Integer
Dim j As Integer
Private Sub Timer1_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs) Handles Timer1.Elapsed
sresult(i) = vb.Timer
i += 1
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Enabled = False
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
j += 1
TextBox3.Text = sresult(j) - sresult(j - 1)
End Sub
OK! What do u think it will be in textbox3?(After the second click)
Wait for a minute to go on pls.Just say what do you think the answer now.
OK! Come on,Everybody.Have you done it in your project?
What is the result?
And What i can see is:
The number 0.09375 and 0.109375 displays alternatly.
Why isn't it always 0.1 ?
What is the number 0.09375 or 0.109375?
And when i set timer1.interval=10
the alternate number is :"0" and 0.015625
Thank you for all
ICQ:258-235-734
MSN:msnadair@hotmail.com