Guest User

Untitled

a guest
Jun 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. Private Sub Image1_Click(Index As Integer)
  2. If v = 3 Then
  3. Image1(k).Picture = LoadPicture("logo.jpg")
  4. Image1(n).Picture = LoadPicture("logo.jpg")
  5. v = 0
  6. End If
  7. v = v + 1
  8. If v = 1 Then
  9. Image1(Index).Picture = LoadPicture(Image1(Index).Tag)
  10. n = Index
  11. End If
  12.  
  13. If v = 2 Then
  14. Image1(Index).Picture = LoadPicture(Image1(Index).Tag)
  15. k = Index
  16. If Image1(Index).Tag = Image1(n).Tag Then
  17. Image1(Index).Enabled = False
  18. Image1(n).Enabled = False
  19. v = 0
  20.  
  21. Else
  22. v = v + 1
  23.  
  24. End If
  25. End If
Add Comment
Please, Sign In to add comment