输入中奖号码,查询是否中奖的按纽事件代码:代码如下:
Option Explicit
Private Sub cmdCheck_Click()
Dim strInput As String
strInput = txtInput.Text
If strInput = "123" Then
lab1.Caption = "恭喜"
End IfEnd Sub
Option Explicit
Private Sub cmdCheck_Click()
Dim strInput As String
strInput = txtInput.Text
If strInput = "123" Then
lab1.Caption = "恭喜"
End IfEnd Sub
txtInput 、 lab1
txtInput 、 lab1
Private Sub Command1_Click()
Dim strInput As String
strInput = Text1.Text
If strInput = "123" Then
Label1.Caption = "恭喜"
End If
End Sub
Dim strInput As String
strInput = Text1.Text
If strInput = "123" Then
Label1.Caption = "恭喜"
End If
End Sub