📄 bfrmlogin.frm
字号:
VERSION 5.00
Begin VB.Form bfrmLogin
BorderStyle = 3 'Fixed Dialog
Caption = "登录数据恢复"
ClientHeight = 1515
ClientLeft = 4185
ClientTop = 3015
ClientWidth = 3780
ControlBox = 0 'False
Icon = "bfrmLogin.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 895.111
ScaleMode = 0 'User
ScaleWidth = 3549.215
ShowInTaskbar = 0 'False
Begin VB.ComboBox Combo1
Height = 300
ItemData = "bfrmLogin.frx":000C
Left = 2160
List = "bfrmLogin.frx":0013
TabIndex = 4
Text = "高级用户"
Top = 120
Width = 1335
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "退出"
Height = 305
Left = 2400
TabIndex = 3
Top = 1080
Width = 1140
End
Begin VB.TextBox txtPassword
Height = 300
IMEMode = 3 'DISABLE
Left = 2160
PasswordChar = "*"
TabIndex = 2
Top = 600
Width = 1275
End
Begin VB.Image Image4
Height = 480
Left = 3360
Picture = "bfrmLogin.frx":0021
Top = 1680
Visible = 0 'False
Width = 480
End
Begin VB.Label Label1
Height = 375
Left = 360
TabIndex = 5
Top = 1164
Width = 2055
End
Begin VB.Image Image3
Height = 480
Left = 3840
Picture = "bfrmLogin.frx":0463
Top = 2520
Visible = 0 'False
Width = 480
End
Begin VB.Image Image2
Height = 480
Left = 426
Picture = "bfrmLogin.frx":08A5
Top = 240
Width = 480
End
Begin VB.Image Image1
Height = 480
Left = 2760
Picture = "bfrmLogin.frx":0CE7
Top = 1680
Visible = 0 'False
Width = 480
End
Begin VB.Label lblLabels
Caption = "用户(&U):"
Height = 270
Index = 0
Left = 1320
TabIndex = 0
Top = 203
Width = 840
End
Begin VB.Label lblLabels
Caption = "密码(&P):"
Height = 270
Index = 1
Left = 1320
TabIndex = 1
Top = 660
Width = 840
End
End
Attribute VB_Name = "bfrmLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
End
End Sub
Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
KeyCode = 0
End Sub
Private Sub Combo1_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
Private Sub Data6_Error(DataErr As Integer, Response As Integer)
End Sub
Private Sub Form_Load()
gjmm = Dialog1.Text3.Text
End Sub
Private Sub txtPassword_KeyPress(KeyAscii As Integer)
Label1.Caption = ""
Static pword As String
Static counter As Integer
Static numberoftries As Integer
numberoftries = numberoftries + 1
counter = counter + 1
If counter >= 2 And counter <= 3 Then
Image2.Picture = Image3.Picture
ElseIf counter >= 5 And counter <= 6 Then
Image2.Picture = Image4.Picture
End If
If numberoftries = 19 Then
End
End If
pword = pword & Chr$(KeyAscii)
KeyAscii = 0
txtPassword.Text = String$(counter, "*")
If pword = gjmm Then
Image2 = Image1
txtPassword = ""
pword = 0
Label1.Caption = "口令正确,继续……"
counter = 0
pword = ""
txtPassword = ""
numberoftries = 0
Unload Me
Frmchg.Show
Frmxzcz.Show 1
ElseIf counter = 6 Then
counter = 0
pword = ""
txtPassword = ""
Label1.Caption = "口令不对,请重新输入"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -