📄 xsdenglu.frm
字号:
VERSION 5.00
Begin VB.Form xsdenglu
Caption = "学生登陆"
ClientHeight = 3150
ClientLeft = 60
ClientTop = 390
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3150
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "退出"
Height = 495
Left = 2400
TabIndex = 5
Top = 2400
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "登陆"
Height = 495
Left = 360
TabIndex = 4
Top = 2400
Width = 1335
End
Begin VB.TextBox Text2
Height = 495
IMEMode = 3 'DISABLE
Left = 2280
PasswordChar = "*"
TabIndex = 3
Top = 1560
Width = 1695
End
Begin VB.TextBox Text1
Height = 375
Left = 2040
TabIndex = 1
Top = 600
Width = 1695
End
Begin VB.Label Labmima
Caption = "密码"
Height = 495
Left = 240
TabIndex = 2
Top = 1560
Width = 1575
End
Begin VB.Label Labxh
Caption = "学号"
Height = 495
Left = 240
TabIndex = 0
Top = 600
Width = 1455
End
End
Attribute VB_Name = "xsdenglu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim i As Integer
Dim findtag As Boolean
findtag = False
Call xs_con
rstxs.MoveFirst
For i = 0 To rstxs.RecordCount - 1
If Text1.Text = rstxs!学号 And Text2.Text = rstxs!密码 Then
findtag = True
End If
rstxs.MoveNext
Next i
If findtag = True Then
MsgBox ("登陆成功")
xuesheng.Show
Else
MsgBox ("用户名或密码错误,请重新输入!")
End If
rstxs.Close
xs.Close
End Sub
Private Sub Command2_Click()
Unload Me
xuanze.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -