Advertisement
iliyabylich04

Move Photo

Oct 26th, 2022
1,600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub c1_Click()
  2.     If c2.Caption = "Jalankan!" Then
  3.         c2.Caption = "Stop"
  4.         Timer1.Enabled = True
  5.     Else
  6.         c2.Caption = "Jalankan!"
  7.         Timer1.Enabled = False
  8.         p1.Left = 3500
  9.         p1.Top = 150
  10.         Timer1.Enabled = False
  11.     End If
  12.    
  13. End Sub
  14. Private Sub Form_Load()
  15.     Timer1.Enabled = False
  16. End Sub
  17.  
  18. Private Sub Timer1_Timer()
  19.     If p1.Left > 1050 Then
  20.         p1.Move p1.Left - 10, p1.Top + 5
  21.     End If
  22. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement