1.谁有用VB做的码表近三日长上影线源码21点游戏 源代码
谁有用VB做的21点游戏 源代码
Public Class Frm
Private Sub BtnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnStart.Click
Btn.Visible = True
BtnCheat.Visible = True
Txt1.Visible = True
Txt2.Visible = True
Txt3.Visible = True
End Sub
Private Sub Btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn.Click
PB.Visible = False
Randomize()
Txt1.Text = CShort(Rnd() * )
Txt2.Text = CShort(Rnd() * )
Txt3.Text = CShort(Rnd() * )
If CShort(Txt1.Text) + CShort(Txt2.Text) + CShort(Txt3.Text) = Then
PB.Visible = True
End If
End Sub
Private Sub BtnCheat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCheat.Click
Randomize()
Txt1.Text = CShort(Rnd() * )
Txt2.Text = CShort(Rnd() * )
Txt3.Text = - Txt1.Text - Txt2.Text
PB.Visible = True
End Sub
End Class