📄 frmmchpwd.frm
字号:
VERSION 5.00
Begin VB.Form frmMchpwd
BorderStyle = 0 'None
ClientHeight = 4485
ClientLeft = 0
ClientTop = 0
ClientWidth = 3585
LinkTopic = "Form1"
Picture = "frmMchpwd.frx":0000
ScaleHeight = 4485
ScaleWidth = 3585
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.PictureBox Picture1
BackColor = &H0080C0FF&
BorderStyle = 0 'None
Height = 4455
Left = 0
Picture = "frmMchpwd.frx":113EB
ScaleHeight = 4455
ScaleWidth = 3615
TabIndex = 0
Top = 0
Width = 3615
Begin VB.TextBox txtPwd
Appearance = 0 'Flat
BackColor = &H0080C0FF&
BorderStyle = 0 'None
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
IMEMode = 3 'DISABLE
Left = 240
MaxLength = 8
PasswordChar = "*"
TabIndex = 1
Top = 360
Width = 1695
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Height = 615
Left = 480
TabIndex = 13
Top = 1080
Width = 735
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Height = 615
Left = 1440
TabIndex = 12
Top = 1080
Width = 735
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Height = 615
Left = 2400
TabIndex = 11
Top = 1080
Width = 735
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Height = 615
Left = 480
TabIndex = 10
Top = 1920
Width = 735
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Height = 615
Left = 1440
TabIndex = 9
Top = 1920
Width = 735
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
Height = 615
Left = 2400
TabIndex = 8
Top = 1920
Width = 735
End
Begin VB.Label Label7
BackStyle = 0 'Transparent
Height = 615
Left = 480
TabIndex = 7
Top = 2760
Width = 735
End
Begin VB.Label Label8
BackStyle = 0 'Transparent
Height = 615
Left = 1440
TabIndex = 6
Top = 2760
Width = 735
End
Begin VB.Label Label9
BackStyle = 0 'Transparent
Height = 615
Left = 2400
TabIndex = 5
Top = 2760
Width = 735
End
Begin VB.Label Label10
BackStyle = 0 'Transparent
Height = 615
Left = 480
TabIndex = 4
Top = 3600
Width = 735
End
Begin VB.Label Label11
BackStyle = 0 'Transparent
Height = 495
Left = 1560
TabIndex = 3
Top = 3720
Width = 1695
End
Begin VB.Label Label12
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
ForeColor = &H80000008&
Height = 495
Left = 2160
TabIndex = 2
Top = 360
Width = 1335
End
End
End
Attribute VB_Name = "frmMchpwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
txtPwd.Text = ""
End Sub
Private Sub Label1_Click()
txtPwd.Text = txtPwd & "7"
End Sub
Private Sub Label10_Click()
txtPwd.Text = txtPwd & "0"
End Sub
Private Sub Label11_Click()
'MsgBox txtPwd.Text
Dim rs As New ADODB.Recordset
rs.Source = "select * from Admpass "
rs.ActiveConnection = Constr
rs.CursorType = adOpenKeyset
rs.LockType = adLockOptimistic
rs.Open
If Not rs.EOF Then
rs!admpass = txtPwd.Text
rs.Update
Unload Me
End If
End Sub
Private Sub Label12_Click()
If Len(txtPwd.Text) > 0 Then
txtPwd.Text = Left(txtPwd.Text, Len(txtPwd.Text) - 1)
End If
End Sub
Private Sub Label2_Click()
txtPwd.Text = txtPwd & "8"
End Sub
Private Sub Label3_Click()
txtPwd.Text = txtPwd & "9"
End Sub
Private Sub Label4_Click()
txtPwd.Text = txtPwd & "4"
End Sub
Private Sub Label5_Click()
txtPwd.Text = txtPwd & "5"
End Sub
Private Sub Label6_Click()
txtPwd.Text = txtPwd & "6"
End Sub
Private Sub Label7_Click()
txtPwd.Text = txtPwd & "1"
End Sub
Private Sub Label8_Click()
txtPwd.Text = txtPwd & "2"
End Sub
Private Sub Label9_Click()
txtPwd.Text = txtPwd & "3"
End Sub
Private Sub txtPwd_DblClick()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -