📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "Form2"
ClientHeight = 4110
ClientLeft = 4065
ClientTop = 2940
ClientWidth = 7230
LinkTopic = "Form2"
ScaleHeight = 4110
ScaleWidth = 7230
Begin VB.OptionButton Option2
Caption = "解密"
Height = 495
Left = 2880
TabIndex = 4
Top = 240
Width = 1215
End
Begin VB.OptionButton Option1
Caption = "加密"
Height = 495
Left = 720
TabIndex = 3
Top = 240
Width = 1215
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 26.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 825
Left = 2640
TabIndex = 2
Top = 2880
Width = 2535
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 26.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 705
Left = 2640
TabIndex = 1
Top = 1680
Width = 2535
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 600
TabIndex = 0
Top = 2280
Width = 1215
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim YAsc2 As Long
Dim JgAsc2 As Long
Dim p As Long
YAsc2 = Asc(Trim(Text1.Text))
If Option1.Value = True Then
If YAsc2 Mod 2 = 0 Then
If (YAsc2 / 2) Mod 2 = 0 Then
JgAsc2 = YAsc2 - 78
Else
JgAsc2 = YAsc2 - 82
End If
Else
If ((YAsc2 - 1) / 2) Mod 2 = 0 Then
JgAsc2 = YAsc2 - 78
Else
JgAsc2 = YAsc2 - 82
End If
End If
End If
If Option2.Value = True Then
If YAsc2 Mod 2 = 0 Then
If (YAsc2 / 2) Mod 2 = 0 Then
JgAsc2 = YAsc2 + 82
Else
JgAsc2 = YAsc2 + 78
End If
Else
If ((YAsc2 - 1) / 2) Mod 2 = 0 Then
JgAsc2 = YAsc2 + 82
Else
JgAsc2 = YAsc2 + 78
End If
End If
End If
Text2.Text = Chr(JgAsc2)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -