📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "校对口令"
ClientHeight = 2160
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
Icon = "Form1.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2160
ScaleWidth = 4680
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2640
TabIndex = 3
Top = 1440
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 720
TabIndex = 2
Top = 1440
Width = 1335
End
Begin VB.TextBox Text1
Height = 375
IMEMode = 3 'DISABLE
Left = 1920
MaxLength = 15
PasswordChar = "*"
TabIndex = 1
Top = 480
Width = 2175
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请键入系统口令:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 240
TabIndex = 0
Top = 600
Width = 1680
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 Sub Command1_Click()
Static Num As Integer
If Num < 2 Then
If Text1.Text <> "Hys249078Azop^!" Then
Num = Num + 1
MsgBox "口令错误,请重新输入!", 64, "口令校对"
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
Text1.SelText = ""
Text1.SetFocus
Else
Load MainFrm ' 装载应用程序的主窗体
MainFrm.Show
Unload Form1 ' 卸除口令校对窗体
End If
Else
MsgBox "口令无效,请与管理员联系!", 16, "口令校对"
End
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
Command1.Value = 1
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -