📄 frmsetini.frm
字号:
VERSION 5.00
Begin VB.Form frmsetini
BorderStyle = 3 'Fixed Dialog
Caption = "软件注册"
ClientHeight = 1395
ClientLeft = 5565
ClientTop = 3360
ClientWidth = 3420
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 1395
ScaleWidth = 3420
ShowInTaskbar = 0 'False
Begin VB.TextBox Text1
Height = 375
Left = 1080
TabIndex = 0
Top = 360
Width = 1935
End
Begin VB.Frame Frame1
Height = 1335
Left = 120
TabIndex = 1
Top = 0
Width = 3135
Begin VB.Label Label2
Caption = "<输入注册码后按回车>"
ForeColor = &H000000FF&
Height = 255
Left = 1080
TabIndex = 3
Top = 960
Width = 1935
End
Begin VB.Label Label1
Caption = "注册码:"
Height = 375
Left = 240
TabIndex = 2
Top = 480
Width = 975
End
End
End
Attribute VB_Name = "frmsetini"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'Private Sub text1_keypress(keyascii As Integer)
If keyascii = "13" And Text1.Text <> "" Then
If Text1.Text = "absedde21" Or Text1.Text = "31eddesab" Or Text1.Text = "weityvb32" Then
dbl
Set g_rs = g_db.OpenRecordset("select * from setini")
g_rs.Edit
g_rs!datenew = "1977-12-26"
g_rs.Update
Set g_rs = Nothing
MsgBox "注册成功,请返回!", vbInformation + vbOKOnly, "成功"
MDIForm1.mfsetini.Visible = False
Unload Me
Else
MsgBox "请输入正确的注册码!", vbInformation + vbOKOnly, "信息"
Text1.Text = ""
Text1.SetFocus
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -