Private Sub CommandButton1_Click()
CommandButton2.Enabled = True
Dim a As Integer
Randomize
Do
a = CInt(1 + 4 * Rnd) * 5
TextBox1.Text = a
TextBox2.Text = ""
DoEvents
Loop
End Sub
Private Sub CommandButton2_Click()
TextBox2.Text = "您选择的是 " & TextBox1.Text + " 号题!"
TextBox3.SelText = TextBox1.Text & Space(4)
CommandButton2.Enabled = False
End
End Sub
Private Sub CommandButton3_Click()
TextBox3.Text = ""
End Sub
CommandButton2.Enabled = True
Dim a As Integer
Randomize
Do
a = CInt(1 + 4 * Rnd) * 5
TextBox1.Text = a
TextBox2.Text = ""
DoEvents
Loop
End Sub
Private Sub CommandButton2_Click()
TextBox2.Text = "您选择的是 " & TextBox1.Text + " 号题!"
TextBox3.SelText = TextBox1.Text & Space(4)
CommandButton2.Enabled = False
End
End Sub
Private Sub CommandButton3_Click()
TextBox3.Text = ""
End Sub