📄 form1.frm
字号:
Left = 3120
TabIndex = 49
Top = 5880
UseMnemonic = 0 'False
Width = 1455
End
Begin VB.Shape Shape9
BackColor = &H000000C0&
BackStyle = 1 'Opaque
Height = 735
Left = 240
Shape = 4 'Rounded Rectangle
Top = 5760
Width = 4455
End
Begin VB.Shape Shape8
BackColor = &H00000080&
BackStyle = 1 'Opaque
Height = 975
Left = 0
Top = 5640
Width = 5895
End
Begin VB.Line Line10
X1 = 4560
X2 = 4560
Y1 = 1320
Y2 = 4680
End
Begin VB.Shape Shape7
FillColor = &H000080FF&
FillStyle = 0 'Solid
Height = 1815
Left = 120
Top = 3000
Width = 135
End
Begin VB.Shape Shape6
FillColor = &H000000FF&
FillStyle = 0 'Solid
Height = 1695
Left = 120
Top = 1320
Width = 135
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "控制"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 4725
TabIndex = 31
Top = 195
Width = 1170
End
Begin VB.Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "帮助"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 4725
TabIndex = 30
Top = 0
Width = 1170
End
Begin VB.Line Line9
X1 = 4710
X2 = 4710
Y1 = 0
Y2 = 5760
End
Begin VB.Line Line8
X1 = 4680
X2 = 4680
Y1 = 0
Y2 = 5760
End
Begin VB.Shape Shape4
FillColor = &H0093B830&
FillStyle = 0 'Solid
Height = 135
Left = 240
Top = 4680
Width = 4335
End
Begin VB.Line Line7
X1 = 120
X2 = 4560
Y1 = 3840
Y2 = 3840
End
Begin VB.Line Line6
X1 = 120
X2 = 4560
Y1 = 3000
Y2 = 3000
End
Begin VB.Line Line5
BorderColor = &H0093B830&
X1 = 3960
X2 = 3960
Y1 = 2040
Y2 = 2520
End
Begin VB.Line Line4
BorderColor = &H0093B830&
X1 = 2280
X2 = 2280
Y1 = 2040
Y2 = 2520
End
Begin VB.Line Line3
BorderColor = &H0093B830&
X1 = 600
X2 = 600
Y1 = 2040
Y2 = 2520
End
Begin VB.Line Line2
X1 = 120
X2 = 4560
Y1 = 2040
Y2 = 2040
End
Begin VB.Line Line1
X1 = 120
X2 = 4560
Y1 = 1320
Y2 = 1320
End
Begin VB.Shape Shape2
BackColor = &H00806622&
BackStyle = 1 'Opaque
Height = 135
Left = 240
Top = 720
Width = 4335
End
Begin VB.Shape Shape1
BackColor = &H00000080&
BackStyle = 1 'Opaque
Height = 645
Left = 120
Top = 480
Width = 135
End
Begin VB.Shape Shape3
BackColor = &H00806622&
BackStyle = 1 'Opaque
Height = 495
Left = 240
Top = 2040
Width = 4215
End
Begin VB.Shape Shape5
BackColor = &H00D86B50&
BackStyle = 1 'Opaque
Height = 5655
Left = 4680
Top = 0
Width = 1215
End
Begin VB.Menu mnuMenu
Caption = "文件(&F)"
Begin VB.Menu mnuLabel
Caption = "显示示例标签"
End
Begin VB.Menu mnuDS
Caption = "执行数字交换"
End
Begin VB.Menu mnuReg
Caption = "注册示例"
End
Begin VB.Menu s435345624523452345
Caption = "-"
End
Begin VB.Menu mnuExit
Caption = "退出"
End
End
Begin VB.Menu mnuHelp
Caption = "帮助(&H)"
Begin VB.Menu mnuLhelp
Caption = "说明"
End
Begin VB.Menu mnuAbout
Caption = "关于"
End
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 Declare Function GetVolumeInformation& Lib "kernel32" _
Alias "GetVolumeInformationA" (ByVal lpRootPathName _
As String, ByVal pVolumeNameBuffer As String, ByVal _
nVolumeNameSize As Long, lpVolumeSerialNumber As Long, _
lpMaximumComponentLength As Long, lpFileSystemFlags As _
Long, ByVal lpFileSystemNameBuffer As String, ByVal _
nFileSystemNameSize As Long)
Const MAX_FILENAME_LEN = 256
Public Function SerNum(Drive$) As Long '获取硬盘序列号
Dim No&, s As String * MAX_FILENAME_LEN
Call GetVolumeInformation(Drive + ":\", s, MAX_FILENAME_LEN, _
No, 0&, 0&, s, MAX_FILENAME_LEN)
SerNum = No
End Function
Private Function Invert(strng As String) ' 颠倒函数
Dim i As Integer
Dim tmp_txt As String
i = Len(strng)
Do Until i = 0
tmp_txt = tmp_txt & Mid(strng, i, 1)
i = i - 1
Loop
Invert = tmp_txt
End Function
Private Sub Command1_Click()
Dim MFact As Integer
Command3_Click
MFact = Int(Val(Val(Val(Mid(Text2.Text, 1, 1)) + Val(Mid(Text2.Text, 12, 1)) + Val(Mid(Text2.Text, 24, 1)) + Val(Mid(Text2.Text, Val(Mid(Text2.Text, 1, 1)), 1))) / 4))
Text3.Text = iSplit(Text2.Text, MFact, 0)
Text4.Text = iSplit(Text2.Text, MFact, 1)
Text5.Text = iSplit(Text2.Text, MFact, 2)
Text6.Text = iSplit(Text2.Text, MFact, 3)
Text7.Text = iSplit(Text2.Text, MFact, 4)
End Sub
Private Sub Command10_Click()
If Mid(Text3.Text, 5, 1) <> 0 Then
Text8.Text = Invert(Text3.Text)
Else
Text8.Text = Text3.Text
End If
Text10.Text = Invert(Text5.Text)
Text12.Text = Invert(Text7.Text)
Text9.Text = Text4.Text
Text11.Text = Text6.Text
End Sub
Private Sub Command11_Click()
Text13.Text = Replace(Text8.Text, "27", "Z3")
Text13.Text = Replace(Text13.Text, "91", "8F")
Text13.Text = Replace(Text13.Text, "72", "1K")
Text13.Text = Replace(Text13.Text, "19", "PS")
Text13.Text = Replace(Text13.Text, "56", "O1")
Text13.Text = Replace(Text13.Text, "65", "M3")
Text13.Text = Replace(Text13.Text, "83", "L0")
Text13.Text = Replace(Text13.Text, "38", "E5")
Text13.Text = Replace(Text13.Text, "01", "XD")
Text13.Text = Replace(Text13.Text, "10", "PW")
Text14.Text = Replace(Text9.Text, "30", "C4")
Text14.Text = Replace(Text14.Text, "03", "UX")
Text14.Text = Replace(Text14.Text, "55", "I8")
Text14.Text = Replace(Text14.Text, "66", "PS")
Text14.Text = Replace(Text14.Text, "23", "MZ")
Text14.Text = Replace(Text14.Text, "32", "8Q")
Text14.Text = Replace(Text14.Text, "14", "0L")
Text14.Text = Replace(Text14.Text, "41", "XS")
Text14.Text = Replace(Text14.Text, "74", "9U")
Text14.Text = Replace(Text14.Text, "47", "NT")
Text15.Text = Replace(Text10.Text, "27", "Z3")
Text15.Text = Replace(Text15.Text, "91", "8F")
Text15.Text = Replace(Text15.Text, "72", "1K")
Text15.Text = Replace(Text15.Text, "19", "PS")
Text15.Text = Replace(Text15.Text, "56", "O1")
Text15.Text = Replace(Text15.Text, "32", "8Q")
Text15.Text = Replace(Text15.Text, "14", "0L")
Text15.Text = Replace(Text15.Text, "41", "XS")
Text15.Text = Replace(Text15.Text, "74", "9U")
Text15.Text = Replace(Text15.Text, "47", "NT")
Text16.Text = Replace(Text11.Text, "27", "Z3")
Text16.Text = Replace(Text16.Text, "91", "8F")
Text16.Text = Replace(Text16.Text, "72", "1K")
Text16.Text = Replace(Text16.Text, "19", "PS")
Text16.Text = Replace(Text16.Text, "56", "O1")
Text16.Text = Replace(Text16.Text, "65", "M3")
Text16.Text = Replace(Text16.Text, "83", "L0")
Text16.Text = Replace(Text16.Text, "38", "E5")
Text16.Text = Replace(Text16.Text, "01", "XD")
Text16.Text = Replace(Text16.Text, "10", "PW")
Text17.Text = Replace(Text12.Text, "30", "C4")
Text17.Text = Replace(Text17.Text, "03", "UX")
Text17.Text = Replace(Text17.Text, "55", "I8")
Text17.Text = Replace(Text17.Text, "66", "PS")
Text17.Text = Replace(Text17.Text, "23", "MZ")
Text17.Text = Replace(Text17.Text, "32", "8Q")
Text17.Text = Replace(Text17.Text, "14", "0L")
Text17.Text = Replace(Text17.Text, "41", "XS")
Text17.Text = Replace(Text17.Text, "74", "9U")
Text17.Text = Replace(Text17.Text, "47", "NT")
End Sub
Private Sub Command12_Click()
Dim i As Integer
i = Val(Mid(Text1.Text, 1, 1))
Select Case i = Val(Mid(Text1.Text, 1, 1))
Case i = 1
Text18.Text = Text14.Text
Text19.Text = Text16.Text
Text20.Text = Text13.Text
Text21.Text = Text17.Text
Text22.Text = Text15.Text
Case i = 2
Text18.Text = Text16.Text
Text19.Text = Text13.Text
Text20.Text = Text15.Text
Text21.Text = Text14.Text
Text22.Text = Text17.Text
Case i = 3
Text18.Text = Text15.Text
Text19.Text = Text13.Text
Text20.Text = Text16.Text
Text21.Text = Text17.Text
Text22.Text = Text14.Text
Case i = 4
Text18.Text = Text13.Text
Text19.Text = Text14.Text
Text20.Text = Text16.Text
Text21.Text = Text17.Text
Text22.Text = Text15.Text
Case i = 5
Text18.Text = Text14.Text
Text19.Text = Text16.Text
Text20.Text = Text13.Text
Text21.Text = Text17.Text
Text22.Text = Text15.Text
Case i = 6
Text18.Text = Text14.Text
Text19.Text = Text16.Text
Text20.Text = Text13.Text
Text21.Text = Text17.Text
Text22.Text = Text15.Text
Case i = 7
Text18.Text = Text14.Text
Text19.Text = Text16.Text
Text20.Text = Text13.Text
Text21.Text = Text17.Text
Text22.Text = Text15.Text
Case i = 8
Text18.Text = Text16.Text
Text19.Text = Text13.Text
Text20.Text = Text15.Text
Text21.Text = Text14.Text
Text22.Text = Text17.Text
Case i = 9
Text18.Text = Text17.Text
Text19.Text = Text13.Text
Text20.Text = Text15.Text
Text21.Text = Text14.Text
Text22.Text = Text16.Text
End Select
End Sub
Private Sub Command13_Click()
Text23.Text = Text18.Text & "-" & Text19.Text & "-" & Text20.Text & "-" & Text21.Text & "-" & Text22.Text
End Sub
Private Sub Command14_Click()
Form2.Show
Form2.Left = Me.Left + Me.Width
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -