📄 找回密码.frm
字号:
VERSION 5.00
Begin VB.Form Form16
BackColor = &H00FFC0C0&
Caption = "Form16"
ClientHeight = 5565
ClientLeft = 60
ClientTop = 345
ClientWidth = 7350
LinkTopic = "Form16"
Picture = "找回密码.frx":0000
ScaleHeight = 5565
ScaleWidth = 7350
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
BackColor = &H00FFC0C0&
Caption = "找回密码界面"
Height = 2535
Left = 840
TabIndex = 0
Top = 1320
Width = 5175
Begin VB.CommandButton Command4
Caption = "显示问题"
Height = 495
Left = 600
Picture = "找回密码.frx":9224
Style = 1 'Graphical
TabIndex = 6
Top = 360
Width = 1575
End
Begin VB.TextBox Text1
Enabled = 0 'False
Height = 495
Left = 2640
TabIndex = 5
Top = 360
Width = 2175
End
Begin VB.TextBox Text2
Height = 495
Left = 2640
TabIndex = 4
Top = 1080
Width = 2175
End
Begin VB.CommandButton Command3
Caption = "提交"
Height = 495
Left = 2640
Picture = "找回密码.frx":11AFA
Style = 1 'Graphical
TabIndex = 3
Top = 1800
Width = 2175
End
Begin VB.CommandButton Command2
Caption = "返回"
Height = 495
Left = 600
Picture = "找回密码.frx":1A3D0
Style = 1 'Graphical
TabIndex = 2
Top = 1800
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "答案"
Height = 495
Index = 4
Left = 600
Picture = "找回密码.frx":22CA6
Style = 1 'Graphical
TabIndex = 1
Top = 1080
Width = 1575
End
End
End
Attribute VB_Name = "Form16"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public yg16 As String
Public bz16 As Integer
Private Sub Command2_Click()
If bz16 = 1 Then
Unload Me
Form15.Show
Else
Unload Me
Form2.Show
End If
End Sub
Private Sub Command3_Click()
If Text2.Text = "" Then
MsgBox "请填写答案!", vbRetryCancel + vbExclamation, "错误提示"
Text2.SetFocus
Else
Call openconn
rs.Open "select * from employee_xx053_06 where e_No='" & yg16 & "'and e_answer='" & Trim(Text2.Text) & "'", conn, adOpenDynamic, adLockOptimistic
If rs.BOF And rs.EOF Then
MsgBox "答案不正确!", vbRetryCancel + vbExclamation, "错误提示"
rs.Close
Unload Me
Form16.Show
Else
rs.Close
Unload Me
Form13.Show
End If
End If
End Sub
Private Sub Command4_Click()
Call openconn
rs.Open "select * from employee_xx053_06 where e_No='" & yg16 & "'", conn, adOpenDynamic, adLockOptimistic
If rs.BOF And rs.EOF Then
MsgBox "显示不成功!", vbRetryCancel + vbExclamation, "错误提示"
rs.Close
Exit Sub
Else
' If rs!e_qustion <> Null Then
If rs!e_qustion = Null Then
MsgBox "你没有设置问题!"
rs.Close
Unload Me
Form1.Show
Else
Text1.Text = rs!e_qustion
rs.Close
End If
' Else
' MsgBox "你没有设置问题!"
' rs.Close
' Unload Me
' Form1.Show
' End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -