Advertisement
ManuMaloka

Jogo 777

May 4th, 2023 (edited)
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.     Private Sub Form1_Load(sender As Object, e As EventArgs)
  3.  
  4.     End Sub
  5.  
  6.     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
  7.         End
  8.     End Sub
  9.  
  10.     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  11.        
  12.         Randomize()
  13.  
  14.         Superwin.Visible = False
  15.         PictureBox2.Visible = False
  16.         Bigwin.Visible = False
  17.         Notstonks.Visible = False
  18.  
  19.         Label1.Text = Int(Rnd() * 10)
  20.         Label2.Text = Int(Rnd() * 10)
  21.         Label3.Text = Int(Rnd() * 10)
  22.  
  23.  
  24.         For i As Integer = 0 To 10
  25.             Label1.Text = Int(Rnd() * 10)
  26.             Label2.Text = Int(Rnd() * 10)
  27.             Label3.Text = Int(Rnd() * 10)
  28.             Application.DoEvents()
  29.             Threading.Thread.Sleep(150)
  30.         Next
  31.  
  32.         If Label1.Text = "7" And Label2.Text = "7" And Label3.Text = "7" Then
  33.             Superwin.Visible = True
  34.         ElseIf Label1.Text = "7" And Label2.Text = "7" Or Label2.Text = "7" And Label3.Text = "7" Or Label1.Text = "7" And Label3.Text = "7" Then
  35.             PictureBox2.Visible = True
  36.         ElseIf Label1.Text = "7" Or Label2.Text = "7" Or Label3.Text = "7" Then
  37.             Bigwin.Visible = True
  38.         Else
  39.             Notstonks.Visible = True
  40.         End If
  41.  
  42.  
  43.     End Sub
  44. End Class
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement