📄 password.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H008080FF&
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
BackColor = &H008080FF&
Caption = "请输入你的口令"
Height = 1215
Left = 600
TabIndex = 0
Top = 480
Width = 3015
Begin VB.TextBox Text1
Height = 375
IMEMode = 3 'DISABLE
Left = 360
PasswordChar = "*"
TabIndex = 1
Top = 480
Width = 2295
End
End
Begin VB.Label Label1
BackColor = &H008080FF&
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 1080
TabIndex = 2
Top = 2280
Width = 2175
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Text1.MaxLength = 5
End Sub
Private Sub Text1_Change()
If Len(Text1.Text) = 5 Then
If LCase(Text1.Text) = "china" Then
Label1.Caption = "欢迎使用该系统"
Else
Label1.Caption = "对不起,口令错!"
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -