Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Animation_Timer
- Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
- If PictureBox1.Left < Me.Width Then
- PictureBox1.Left = PictureBox1.Left + 10
- Else
- PictureBox1.Left = 0
- End If
- End Sub
- Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click
- Timer1.Enabled = True
- End Sub
- Private Sub btnStop_Click(sender As Object, e As EventArgs) Handles btnStop.Click
- Timer1.Enabled = False
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement