Write a Vb.Net program to move the Text “Dr D Y Patil College” continuously from Left to Right.
Program:-
Public Class slip3
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Label1.Left = Label1.Left + 10
If Label1.Left >= Me.Right Then
Label1.Left = Me.Left
End If
End Sub
End Class
Design:-
1) Take Label and timer control on design form.
2) Set Label Text
3) Set timer control Enabled property as True
Note - Set startup form's application type as Windows Form Application
Output:-
0 Comments