©ñ¦í¥ý....µ¥§Ú²`«ä¤U
Private Sub Cmdreset_Click()
PicZero.Visible = False
PicFive.Visible = False
PicTen.Visible = False
PicZeroi.Visible = False
PicFivei.Visible = False
PicTeni.Visible = False
Label3.Caption = "Start"
Label3.ForeColor = &H800080
Yourc.Caption = "Your choice"
Yourc.ForeColor = &H0&
movingMC.Visible = False
tear.Visible = False
MCsleep.Visible = True
End Sub
Private Sub CmdZero_Click()
PicZero.Visible = True
PicFive.Visible = False
PicTen.Visible = False
End Sub
Private Sub CmdFive_Click()
PicZero.Visible = False
PicFive.Visible = True
PicTen.Visible = False
End Sub
Private Sub CmdTen_Click()
PicZero.Visible = False
PicFive.Visible = False
PicTen.Visible = True
End Sub
Private Sub No0_Click()
Yourc.Caption = "Your choice 0"
Yourc.ForeColor = &HC0C0FF
MCsleep.Visible = False
If Label3.Caption = "You Win!" Then
Yourc.ForeColor = &HFF&
movingMC.Visible = True
Else
movingMC.Visible = False
End If
If Label3.Caption = "You Loss!" Then
tear.Visible = True
Label3.ForeColor = &HFFFF00
Else
tear.Visible = False
End If
Randomize
choice = Int(3 * Rnd + 1)
If choice = 1 Then
PicZeroi.Visible = True
PicFivei.Visible = False
PicTeni.Visible = False
If PicZero.Visible = True Then
Label3.Caption = "You Win!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
If choice = 2 Then
PicZeroi.Visible = False
PicFivei.Visible = True
PicTeni.Visible = False
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
If choice = 3 Then
PicZeroi.Visible = False
PicFivei.Visible = False
PicTeni.Visible = True
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
End Sub
Private Sub No10_Click()
Yourc.Caption = "Your choice 10"
Yourc.ForeColor = &HC0FFC0
MCsleep.Visible = False
If Label3.Caption = "You Win!" Then
movingMC.Visible = True
Label3.ForeColor = &HFF&
Else
movingMC.Visible = False
End If
If Label3.Caption = "You Loss!" Then
tear.Visible = True
Label3.ForeColor = &HFFFF00
Else
tear.Visible = False
End If
Randomize
choice = Int(3 * Rnd + 1)
If choice = 1 Then
PicZeroi.Visible = True
PicFivei.Visible = False
PicTeni.Visible = False
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Win!"
End If
End If
If choice = 2 Then
PicZeroi.Visible = False
PicFivei.Visible = True
PicTeni.Visible = False
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Win!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
If choice = 3 Then
PicZeroi.Visible = False
PicFivei.Visible = False
PicTeni.Visible = True
If PicZero.Visible = True Then
Label3.Caption = "You Win!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
End Sub
Private Sub No15_Click()
Yourc.Caption = "Your choice 15"
Yourc.ForeColor = &HFFC0C0
MCsleep.Visible = False
If Label3.Caption = "You Win!" Then
movingMC.Visible = True
Label3.ForeColor = &HFF&
Else
movingMC.Visible = False
End If
If Label3.Caption = "You Loss!" Then
tear.Visible = True
Label3.ForeColor = &HFFFF00
Else
tear.Visible = False
End If
Randomize
choice = Int(3 * Rnd + 1)
If choice = 1 Then
PicZeroi.Visible = True
PicFivei.Visible = False
PicTeni.Visible = False
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
If choice = 2 Then
PicZeroi.Visible = False
PicFivei.Visible = True
PicTeni.Visible = False
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Win!"
End If
End If
If choice = 3 Then
PicZeroi.Visible = False
PicFivei.Visible = False
PicTeni.Visible = True
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Win!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
End Sub
Private Sub No20_Click()
Yourc.Caption = "Your choice 20"
Yourc.ForeColor = &HFF00FF
MCsleep.Visible = False
If Label3.Caption = "You Win!" Then
movingMC.Visible = True
Label3.ForeColor = &HFF&
Else
movingMC.Visible = False
End If
If Label3.Caption = "You Loss!" Then
tear.Visible = True
Label3.ForeColor = &HFFFF00
Else
tear.Visible = False
End If
Randomize
choice = Int(3 * Rnd + 1)
If choice = 1 Then
PicZeroi.Visible = True
PicFivei.Visible = False
PicTeni.Visible = False
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
If choice = 2 Then
PicZeroi.Visible = False
PicFivei.Visible = True
PicTeni.Visible = False
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
If choice = 3 Then
PicZeroi.Visible = False
PicFivei.Visible = False
PicTeni.Visible = True
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Win!"
End If
End If
End If
End Sub
Private Sub No5_Click()
Yourc.Caption = "Your choice 5"
Yourc.ForeColor = &H80FFFF
MCsleep.Visible = False
If Label3.Caption = "You Win!" Then
movingMC.Visible = True
Label3.ForeColor = &HFF&
Else
movingMC.Visible = False
End If
If Label3.Caption = "You Loss!" Then
tear.Visible = True
Label3.ForeColor = &HFFFF00
Else
tear.Visible = False
End If
Randomize
choice = Int(3 * Rnd + 1)
If choice = 1 Then
PicZeroi.Visible = True
PicFivei.Visible = False
PicTeni.Visible = False
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Win!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
If choice = 2 Then
PicZeroi.Visible = False
PicFivei.Visible = True
PicTeni.Visible = False
If PicZero.Visible = True Then
Label3.Caption = "You Win!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
If choice = 3 Then
PicZeroi.Visible = False
PicFivei.Visible = False
PicTeni.Visible = True
If PicZero.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicFive.Visible = True Then
Label3.Caption = "You Loss!"
End If
If PicTen.Visible = True Then
Label3.Caption = "You Loss!"
End If
End If
End Sub