📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "Form2"
ClientHeight = 2700
ClientLeft = 60
ClientTop = 375
ClientWidth = 5745
LinkTopic = "Form2"
ScaleHeight = 2700
ScaleWidth = 5745
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text3
Height = 435
Left = 300
TabIndex = 6
Text = "Text3"
Top = 2040
Width = 2175
End
Begin VB.CommandButton Command3
Caption = "还原"
Height = 525
Left = 2700
TabIndex = 5
Top = 2040
Width = 1635
End
Begin VB.TextBox Text2
Height = 405
Left = 270
TabIndex = 4
Text = "Text2"
Top = 1320
Width = 2205
End
Begin VB.CommandButton Command2
Caption = "读出"
Height = 465
Left = 2610
TabIndex = 3
Top = 1350
Width = 2445
End
Begin VB.TextBox Text1
Height = 405
Left = 240
TabIndex = 2
Text = "Text1"
Top = 810
Width = 1845
End
Begin VB.CommandButton Command1
Caption = "写加密数据"
Height = 405
Left = 2190
TabIndex = 1
Top = 810
Width = 2145
End
Begin VB.Label Label1
Caption = "你可以使用这个程序了."
BeginProperty Font
Name = "楷体_GB2312"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Left = 240
TabIndex = 0
Top = 120
Width = 5115
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim dbs As Database
Dim rst As Recordset
Dim oldtext As String
Dim newtext As String
Private Sub Command1_Click()
newtext = ""
rst.MoveFirst
For k = 1 To Len(Text1.Text)
newtext = newtext & Chr(CInt(Asc(Mid(Text1.Text, k, 1))) + 12)
Next
rst.Edit
rst.Fields("密码") = newtext
rst.Update
End Sub
Private Sub Command2_Click()
Text2.Text = rst.Fields("密码")
End Sub
Private Sub Command3_Click()
Text3.Text = ""
For k = 1 To Len(rst.Fields("密码"))
oldtext = oldtext & Chr(CInt(Asc(Mid(rst.Fields("密码"), k, 1))) - 12)
Next
Text3.Text = oldtext
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -