📄 frmuser.frm
字号:
VERSION 5.00
Begin VB.Form frmuser
BorderStyle = 3 'Fixed Dialog
Caption = "操作员"
ClientHeight = 2310
ClientLeft = 3720
ClientTop = 4395
ClientWidth = 5475
KeyPreview = -1 'True
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2310
ScaleWidth = 5475
Begin VB.TextBox txtconpass
BackColor = &H00FFFFFF&
DataField = "password"
Height = 285
IMEMode = 3 'DISABLE
Left = 1920
PasswordChar = "*"
TabIndex = 2
Top = 1200
Width = 3135
End
Begin VB.CommandButton cmdok
Caption = "保存"
Default = -1 'True
Height = 375
Left = 2160
TabIndex = 3
Top = 1800
Width = 1215
End
Begin VB.CommandButton cmdcancel
Cancel = -1 'True
Caption = "取消"
Height = 375
Left = 3600
TabIndex = 4
Top = 1800
Width = 1215
End
Begin VB.TextBox txtUserName
DataField = "username"
Height = 285
Left = 1920
TabIndex = 0
Top = 225
Width = 3135
End
Begin VB.TextBox txtUserID
DataField = "userid"
Height = 285
Left = 3480
TabIndex = 7
Top = 3000
Width = 3375
End
Begin VB.TextBox txtPassword
DataField = "password"
Height = 285
IMEMode = 3 'DISABLE
Left = 1920
PasswordChar = "*"
TabIndex = 1
Top = 705
Width = 3135
End
Begin VB.Label lblLabels
Caption = "口令确认:"
Height = 255
Index = 3
Left = 240
TabIndex = 9
Top = 1200
Width = 1815
End
Begin VB.Label lblLabels
Caption = "操作员名称:"
Height = 255
Index = 2
Left = 240
TabIndex = 8
Top = 240
Width = 1815
End
Begin VB.Label lblLabels
Caption = "User ID:"
Height = 255
Index = 1
Left = 1680
TabIndex = 6
Top = 3000
Width = 1815
End
Begin VB.Label lblLabels
Caption = "口令:"
Height = 255
Index = 0
Left = 240
TabIndex = 5
Top = 720
Width = 1815
End
End
Attribute VB_Name = "frmuser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public ok As String
Public value As User
Private Sub Cmdcancel_Click()
ok = False
Me.Hide
'Unload Me
End Sub
Private Sub CmdOk_Click()
value.username = Me.txtUserName
value.password = Me.txtPassword
value.conpassword = Me.txtconpass
ok = True
Me.Hide
'Unload Me
End Sub
Private Sub Form_Load()
' adoPrimaryRS.Open "select password,userid,username from Users", db, adOpenStatic, adLockOptimistic
Me.txtUserName = value.username
End Sub
Private Sub Form_Unload(Cancel As Integer)
ok = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -