Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- PictureBox1.Visible = False 'piilotakuva
- Label1.Text = CStr(Int(Rnd() * 10)) 'valitse numerot
- Label2.Text = CStr(Int(Rnd() * 10))
- Label3.Text = CStr(Int(Rnd() * 10))
- 'Jos joku numero on 7, näytä numero ja anna äänimerkki
- If (Label1.Text = "7") Or (Label2.Text = "7") Or (Label3.Text = "7") Then
- PictureBox1.Visible = True
- Beep()
- End If
- End Sub
- End Class
Add Comment
Please, Sign In to add comment