📄 frm_pass.frm
字号:
VERSION 5.00
Object = "{BDF6FCF6-E2A0-4DA6-8DF8-FA27594705C8}#26.1#0"; "XPControls.ocx"
Begin VB.Form frm_pass
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Caption = " Login"
ClientHeight = 990
ClientLeft = 45
ClientTop = 360
ClientWidth = 2610
BeginProperty Font
Name = "Century Gothic"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 990
ScaleWidth = 2610
StartUpPosition = 2 'CenterScreen
Begin XPControls.XPButton cmd_login
Height = 375
Left = 120
TabIndex = 1
Top = 480
Width = 1095
_ExtentX = 1931
_ExtentY = 661
Caption = "Login"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Century Gothic"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.TextBox TxtPass
Appearance = 0 'Flat
Height = 285
IMEMode = 3 'DISABLE
Left = 120
PasswordChar = "x"
TabIndex = 0
Top = 120
Width = 2295
End
Begin XPControls.XPButton cmd_cancel
Height = 375
Left = 1320
TabIndex = 2
Top = 480
Width = 1095
_ExtentX = 1931
_ExtentY = 661
Caption = "Cancel"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Century Gothic"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
End
Attribute VB_Name = "frm_pass"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmd_cancel_Click()
Unload Me
End Sub
Private Sub cmd_login_Click()
On Error Resume Next
Dim linestr As String
Open App.Path & "\pass.blc" For Input As #1
Line Input #1, linestr
Close #1
If TxtPass.Text = linestr Then
frmblock.ilang.Enabled = False
frmblock.Show
frmblock.Text1.SetFocus
Else
MsgBox "Password salah", vbInformation + vbOKOnly, "The P * * N Blocker"
TxtPass.Text = ""
TxtPass.SetFocus
Exit Sub
End If
TxtPass.Text = ""
Unload Me
End Sub
Private Sub Form_Activate()
TxtPass.SetFocus
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -