Guest User

Untitled

a guest
Dec 13th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2. PictureBox1.Visible = False 'piilotakuva
  3. Label1.Text = CStr(Int(Rnd() * 10)) 'valitse numerot
  4. Label2.Text = CStr(Int(Rnd() * 10))
  5. Label3.Text = CStr(Int(Rnd() * 10))
  6. 'Jos joku numero on 7, näytä numero ja anna äänimerkki
  7. If (Label1.Text = "7") Or (Label2.Text = "7") Or (Label3.Text = "7") Then
  8. PictureBox1.Visible = True
  9. Beep()
  10. End If
  11. End Sub
  12. End Class
Add Comment
Please, Sign In to add comment