📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "计算产品序列号"
ClientHeight = 3075
ClientLeft = -90
ClientTop = -675
ClientWidth = 4290
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3075
ScaleWidth = 4290
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox txtKey
Height = 375
Left = 1560
TabIndex = 10
Top = 1440
Width = 2535
End
Begin VB.TextBox txtPassword
Height = 375
Left = 1560
TabIndex = 9
Top = 960
Width = 2535
End
Begin VB.TextBox txtName
Height = 375
Left = 1560
TabIndex = 8
Top = 480
Width = 2535
End
Begin VB.CommandButton Command2
Caption = "产生序列号"
Height = 372
Left = 600
TabIndex = 1
Top = 2520
Width = 1575
End
Begin VB.CommandButton Command1
Cancel = -1 'True
Caption = "退出程序"
Height = 372
Left = 2280
TabIndex = 2
Top = 2520
Width = 1575
End
Begin VB.ComboBox cmbKeyType
Appearance = 0 'Flat
BackColor = &H80000000&
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000007&
Height = 288
ItemData = "Form1.frx":0000
Left = 1560
List = "Form1.frx":0002
Style = 2 'Dropdown List
TabIndex = 0
Top = 1920
Width = 1575
End
Begin VB.Label Label4
Caption = "序列号类型:"
Height = 252
Left = 240
TabIndex = 7
Top = 1920
Width = 1212
End
Begin VB.Label Label3
Caption = "产品序列号:"
Height = 252
Left = 240
TabIndex = 6
Top = 1440
Width = 1212
End
Begin VB.Label Label2
Caption = "产品编号:"
Height = 252
Left = 240
TabIndex = 5
Top = 960
Width = 1212
End
Begin VB.Label Label1
Caption = "用户名称:"
Height = 252
Left = 240
TabIndex = 4
Top = 480
Width = 1212
End
Begin VB.Label lblAppTitle
BackStyle = 0 'Transparent
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 240
Left = 255
TabIndex = 3
Top = 45
Width = 1455
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
End
End Sub
Private Sub Command2_Click()
If txtName <> "" Or txtPassword <> "" Then
txtKey.Text = KeyGen(txtName, txtPassword, cmbKeyType.ListIndex + 1)
End If
End Sub
Private Sub Form_Load()
cmbKeyType.Clear
cmbKeyType.AddItem ("数字式")
cmbKeyType.AddItem ("字符式")
cmbKeyType.AddItem ("16进制")
cmbKeyType.ListIndex = 0
cmbKeyType.Text = cmbKeyType.List(0)
End Sub
Private Sub cmbkeyType_Click()
If txtName <> "" Or txtPassword <> "" Then
txtKey.Text = KeyGen(txtName, txtPassword, cmbKeyType.ListIndex + 1)
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -