?? 注冊(cè)機(jī).frm
字號(hào):
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 3 'Fixed Dialog
Caption = "注冊(cè)機(jī)"
ClientHeight = 2745
ClientLeft = 45
ClientTop = 435
ClientWidth = 6570
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2745
ScaleWidth = 6570
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "關(guān)于"
Height = 495
Left = 2640
TabIndex = 6
Top = 2040
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 495
Left = 4440
TabIndex = 5
Top = 2040
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "生成"
Height = 495
Left = 840
TabIndex = 4
Top = 2040
Width = 1335
End
Begin VB.TextBox Text2
Height = 375
Left = 1800
TabIndex = 3
Top = 1320
Width = 3735
End
Begin VB.TextBox Text1
Height = 390
Left = 1800
MaxLength = 10
TabIndex = 2
Top = 480
Width = 3735
End
Begin VB.Label Label2
Caption = "注冊(cè)碼:"
Height = 375
Left = 840
TabIndex = 1
Top = 1320
Width = 735
End
Begin VB.Label Label1
Caption = "機(jī)器碼:"
Height = 375
Left = 840
TabIndex = 0
Top = 600
Width = 855
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Len(Text1.Text) <= 0 Then
MsgBox ("請(qǐng)輸入機(jī)器碼!")
Exit Sub
End If
Dim a(1 To 10) As String
Dim b As String
Dim c As String
Dim d As String
Dim e As String
Dim f As String
For i = 1 To Len(Text1.Text)
a(i) = Mid(Text1.Text, i, 1)
' MsgBox a(i)
' MsgBox Asc(a(i))
' MsgBox Chr(97)
If i <= 4 Then
b = b & Chr(Asc(a(i)) + 9)
End If
If i = 5 Then
c = c & Chr(Asc(a(i)) + 3)
End If
If i > 5 And i < 10 Then
d = d & Chr(Asc(a(i)) + 5)
End If
If i = 10 Then
e = e & Chr(Asc(a(i)) + 4)
End If
Next i
Text2.Text = b & c & d & e
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
frmAbout.Show
End Sub
Private Sub Form_Load()
Form1.Caption = "注冊(cè)機(jī)"
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -