📄 frmmmgl.frm
字号:
VERSION 5.00
Begin VB.Form frmmmgl
Caption = "密钥管理"
ClientHeight = 3945
ClientLeft = 1635
ClientTop = 1740
ClientWidth = 6690
LinkTopic = "Form1"
ScaleHeight = 3945
ScaleWidth = 6690
Begin VB.TextBox Text2
Height = 375
Left = 1920
TabIndex = 4
Top = 2640
Width = 2175
End
Begin VB.TextBox Text1
Height = 375
Left = 1920
TabIndex = 3
Top = 1560
Width = 2175
End
Begin VB.CommandButton Command3
BackColor = &H80000013&
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 450
Left = 2520
Style = 1 'Graphical
TabIndex = 1
Top = 3360
Width = 855
End
Begin VB.CommandButton Command2
BackColor = &H80000013&
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 450
Left = 3720
Style = 1 'Graphical
TabIndex = 0
Top = 3360
Width = 855
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "低二十八位密钥:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 1920
TabIndex = 5
Top = 2160
Width = 2280
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "高二十八位密钥:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 1920
TabIndex = 2
Top = 1080
Width = 2280
End
End
Attribute VB_Name = "frmmmgl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
Unload Me
frmmain.Show
End Sub
Private Sub Command3_Click()
ChDir "d:\encryption"
Open "mmtemp" For Binary As #1
Dim kk1 As Variant
kk1 = Val(Text1.Text)
Put #1, 1, kk1
kk1 = Val(Text2.Text)
Put #1, , kk1
Close #1
Unload Me
frmmain.Show
End Sub
Private Sub Form_Load()
Open "mmtemp" For Binary As #1
Dim kk1 As Variant
Get #1, , kk1
Text1.Text = Str(kk1)
Get #1, , kk1
Text2.Text = Str(kk1)
Close #1
If (Val(Text1.Text) < 2 ^ 32 And Val(Text2.Text) < 2 ^ 32 And (Val(Text1.Text) > 0 Or Val(Text2.Text) > 0)) Then
Command3.Enabled = True
Else
Command3.Enabled = False
End If
End Sub
Private Sub Text1_Change()
If (Val(Text1.Text) < 2 ^ 32 And Val(Text2.Text) < 2 ^ 32 And (Val(Text1.Text) > 0 Or Val(Text2.Text) > 0)) Then
Command3.Enabled = True
Else
Command3.Enabled = False
End If
End Sub
Private Sub Text2_Change()
If (Val(Text1.Text) < 2 ^ 32 And Val(Text2.Text) < 2 ^ 32 And (Val(Text1.Text) > 0 Or Val(Text2.Text) > 0)) Then
Command3.Enabled = True
Else
Command3.Enabled = False
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -