Hi Guys,
I am developing an application to serve as a TV based informational board. I am using a timer to scroll 2 labels (1 to the right of the other)from right to left on the screen to make it look like a marquee, however after about 25 seconds or roughly when the second label starts trailing the first the speed of the labels slows down dramatically, would someone mind looking at my code and letting me know what could be going wrong?
FORM LOAD =
Timer2.Interval = 1
Timer2.Start()
Private Sub Timer2_Tick(ByV al sender As System.Object, ByVal e As System.EventArg s) Handles Timer2.Tick
Label2.Left -= 1
Label3.Left -= 1
If Label2.Left <= -Label2.Width * 2 + Width Then
Label2.Left = Width
End If
If Label3.Left <= -Label2.Width * 2 + Width Then
Label3.Left = Label2.Right
End If
End Sub
Thanks,
James.
I am developing an application to serve as a TV based informational board. I am using a timer to scroll 2 labels (1 to the right of the other)from right to left on the screen to make it look like a marquee, however after about 25 seconds or roughly when the second label starts trailing the first the speed of the labels slows down dramatically, would someone mind looking at my code and letting me know what could be going wrong?
FORM LOAD =
Timer2.Interval = 1
Timer2.Start()
Private Sub Timer2_Tick(ByV al sender As System.Object, ByVal e As System.EventArg s) Handles Timer2.Tick
Label2.Left -= 1
Label3.Left -= 1
If Label2.Left <= -Label2.Width * 2 + Width Then
Label2.Left = Width
End If
If Label3.Left <= -Label2.Width * 2 + Width Then
Label3.Left = Label2.Right
End If
End Sub
Thanks,
James.