Advertisement
asril99

Untitled

Aug 15th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Public Class Animation_Timer
  2.  
  3. Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
  4. If PictureBox1.Left < Me.Width Then
  5. PictureBox1.Left = PictureBox1.Left + 10
  6. Else
  7. PictureBox1.Left = 0
  8. End If
  9. End Sub
  10.  
  11. Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click
  12. Timer1.Enabled = True
  13. End Sub
  14.  
  15. Private Sub btnStop_Click(sender As Object, e As EventArgs) Handles btnStop.Click
  16. Timer1.Enabled = False
  17. End Sub
  18. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement