7,763
社区成员
发帖
与我相关
我的任务
分享
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
If TextBox1.Text = "82" And TextBox2.Text = Form3.a Then
Form1.Show()
Me.Close()
Form1.TextBox1.PasswordChar = ""
Else
MsgBox("输入错误的验证码或用户名,无法解锁", MsgBoxStyle.Exclamation, "提示消息")
End If
End Sub
Public Class Form3
Dim randomizer As New Random
Public a As String
Private Sub Form3_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Label1.Text = randomizer.Next(1000, 9999)
a = Label1.Text
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Form2.Show()
Me.Close()
End Sub
End Class