📄 frmteacher.frm
字号:
VERSION 5.00
Begin VB.Form Frmteacher
BorderStyle = 1 'Fixed Single
Caption = "管理员"
ClientHeight = 2115
ClientLeft = 45
ClientTop = 450
ClientWidth = 4155
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2115
ScaleWidth = 4155
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox txtPassword
Height = 345
IMEMode = 3 'DISABLE
Left = 1305
PasswordChar = "*"
TabIndex = 3
Top = 750
Width = 2325
End
Begin VB.CommandButton cmdCancel
Caption = "取消"
Height = 390
Left = 2160
TabIndex = 2
Top = 1320
Width = 1140
End
Begin VB.CommandButton cmdOK
Caption = "确定"
Height = 390
Left = 510
TabIndex = 1
Top = 1320
Width = 1140
End
Begin VB.TextBox txtUserName
Height = 345
Left = 1305
TabIndex = 0
Top = 360
Width = 2325
End
Begin VB.Frame Frame1
Height = 1815
Left = 120
TabIndex = 4
Top = 120
Width = 3855
Begin VB.Label lblLabels
Caption = "密码(&P):"
Height = 270
Index = 1
Left = 120
TabIndex = 6
Top = 720
Width = 1080
End
Begin VB.Label lblLabels
Caption = "用户名称(&U):"
Height = 270
Index = 0
Left = 120
TabIndex = 5
Top = 360
Width = 1080
End
End
End
Attribute VB_Name = "Frmteacher"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Me
frmSplash.Show
End Sub
Private Sub cmdOK_Click()
Open_user_message
Do While cnn.EOF = False
If cnn.EOF = True Then
Exit Do
End If
If cnn.Fields(0).Value = txtUserName.Text And cnn.Fields(1).Value = txtPassword.Text Then
usename = cnn.Fields(0).Value
usepassword = cnn.Fields(1).Value
Unload Me
set_window '系统设置
FrmMain.Show
Exit Sub
End If
cnn.MoveNext
Loop
'Open_Student_message
'cnn.MovePrevious
'Do While cnn.EOF = False
'If cnn.EOF = True Then
'Exit Do
'End If
'If cnn.Fields(0).Value = txtUserName.Text Then
'MsgBox " 你输入的密码有误,请重新输入!"
'End If
'If cnn.Fields(2).Value = txtPassword.Text Then
'MsgBox " 你输入的用户名有误,请重新输入!"
'End If
'cnn.MoveNext
'Loop
MsgBox "你输入有误,请重新输入!"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -