Public Class Form1
Private myTimer As System.Threading.Timer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim myCallback As New System.Threading.TimerCallback(AddressOf Task1)
myTimer = New System.Threading.Timer(myCallback, Nothing, 100, 100)
End Sub
Private Sub Task1(ByVal state As Object)
Label1.Left -= 1
If Label1.Right <= Me.Left Then
Label1.Left = Me.Right
End If
End Sub
End Class
i try to make scrolling text with that code.

New Topic/Question
Reply



MultiQuote



|