Text Characters Move on Form Right to Left Vb.Net [Solved] | Visual Studio Code

0
In this post you can learned how to move Label Text on Form Vb.net with Timer Use the Below Coding the see the result ..

 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Timer1.Start()
         Timer1.Interval = 500
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Label1.Left = Label1.Left - 10
        If Label1.Left < 0 - Label1.Width Then
            Label1.Left = Me.Width
        End If
    End Sub

Post a Comment

 
Top