Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
下载信息 [文件大小: 下载次数: ] | |
![]() |
或改成这样?
SaveConfigValue("Register" & ComputerId, Forms("注册").Controls("TextBox2").Value)
Dim Val As String = Forms("注册").Controls("TextBox1").Value
Dim Code As String = GetConfigValue("Register" & ComputerId,"")
If Code > "" AndAlso EncryptText(Val,"aaa","aaa") = ComputerId Then '如果注册码正确
MessageBox.Show("注册成功!", "提示")
e.Form.Close()
Else
MessageBox.Show("注册不正确!", "提示")
End If
是我写错了,应该和TextBox2比较,如
SaveConfigValue("Register" & ComputerId, Forms("注册").Controls("TextBox2").Value)
Dim Val As String = Forms("注册").Controls("TextBox1").Value
Dim Code As String = GetConfigValue("Register" & ComputerId,"")
If Code > "" AndAlso EncryptText(Val,"aaa","aaa") = Forms("注册").Controls("TextBox2").Value Then '如果注册码正确
MessageBox.Show("注册成功!", "提示")
e.Form.Close()
Else
MessageBox.Show("注册不正确!", "提示")
End If
OK,谢谢