📄 frm_security.frm
字号:
VERSION 5.00
Begin VB.Form frmsecurity
BackColor = &H00000040&
BorderStyle = 0 'None
Caption = "PSZone Security zone..."
ClientHeight = 2685
ClientLeft = 8280
ClientTop = 4410
ClientWidth = 3480
LinkTopic = "Form1"
ScaleHeight = 2685
ScaleWidth = 3480
ShowInTaskbar = 0 'False
Begin VB.CommandButton Command2
Caption = "Cancel"
Height = 375
Left = 720
TabIndex = 5
Top = 1980
Width = 2115
End
Begin VB.Timer Timer1
Interval = 100
Left = 3480
Top = 2460
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "Lucida Sans"
Size = 11.25
Charset = 0
Weight = 600
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
IMEMode = 3 'DISABLE
Left = 1440
PasswordChar = "*"
TabIndex = 3
Top = 900
Width = 1455
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "Lucida Sans"
Size = 11.25
Charset = 0
Weight = 600
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 1440
TabIndex = 1
Top = 360
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "Enter"
Height = 375
Left = 720
TabIndex = 0
Top = 1440
Width = 2115
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "Password"
BeginProperty Font
Name = "Palatino Linotype"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 330
Left = 300
TabIndex = 4
Top = 960
Width = 1080
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "User ID"
BeginProperty Font
Name = "Palatino Linotype"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 330
Left = 480
TabIndex = 2
Top = 420
Width = 855
End
End
Attribute VB_Name = "frmsecurity"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If UCase(Text1.Text) = "COMPUTER" And UCase(Text2.Text) = "COMPUTER" Then
MDIForm1.Show
Unload Me
Else
MsgBox "Please enter the correct user id/password..."
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
Timer1.Interval = 100
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1.SetFocus
End If
End Sub
Private Sub Timer1_Timer()
If Text1.Text = è Or Text2.Text = è Then
Command1.Enabled = False
Else
Command1.Enabled = True
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -