📄 frmsuperuser.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmsuperuser
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 3030
ClientLeft = 0
ClientTop = 0
ClientWidth = 6675
LinkTopic = "Form1"
Picture = "frmsuperuser.frx":0000
ScaleHeight = 3030
ScaleWidth = 6675
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox inputpwd
BackColor = &H00EDEFF3&
Height = 270
IMEMode = 3 'DISABLE
Left = 2880
PasswordChar = "*"
TabIndex = 2
Top = 1980
Width = 2055
End
Begin VB.TextBox textuser
BackColor = &H00EDEFF3&
DataField = "userid"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 270
Left = 2880
TabIndex = 1
Top = 1640
Width = 2055
End
Begin VB.TextBox textpw
BackColor = &H00EDEFF3&
DataField = "userpwd"
DataSource = "Adodc1"
Height = 375
Left = 2880
TabIndex = 0
Top = 3120
Visible = 0 'False
Width = 1575
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 0
Top = 3120
Width = 6135
_ExtentX = 10821
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 5
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 2
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = 0
Connect = "FILE NAME=C:\Program Files\accp\accp.dsn"
OLEDBString = ""
OLEDBFile = "C:\Program Files\accp\accp.dsn"
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from superuser"
Caption = "adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Image pwd2
Height = 330
Left = 5010
Picture = "frmsuperuser.frx":57F14
ToolTipText = "密码强度:中"
Top = 1928
Visible = 0 'False
Width = 345
End
Begin VB.Image pwd3
Height = 330
Left = 5010
Picture = "frmsuperuser.frx":58588
ToolTipText = "密码强度:强"
Top = 1928
Visible = 0 'False
Width = 345
End
Begin VB.Image pwd1
Height = 330
Left = 5010
Picture = "frmsuperuser.frx":58BFC
ToolTipText = "密码强度:弱"
Top = 1928
Visible = 0 'False
Width = 345
End
Begin VB.Image picexit
Height = 285
Left = 5160
Picture = "frmsuperuser.frx":59270
Top = 2520
Width = 1065
End
Begin VB.Image picok
Height = 285
Left = 3840
Picture = "frmsuperuser.frx":5A2BC
Top = 2520
Width = 1065
End
End
Attribute VB_Name = "frmsuperuser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Me.Height = 3030
Me.Width = 6675
End Sub
'检查密码强度
Private Sub inputpwd_Change()
Call chkuserpwd3(Trim(inputpwd.Text))
End Sub
'回车即检查
Private Sub inputpwd_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Call picok_Click
End If
End Sub
'退出功能实现
Private Sub picexit_Click()
Unload Me
End Sub
'确定功能实现
Private Sub picok_Click()
If Trim(inputpwd.Text) = Trim(textpw.Text) Then
frmmain.chkuser.Value = 1
Unload Me
Else
inputpwd.Text = ""
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -