📄 minaxiugai.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form ChangePwd
Caption = "Form6"
ClientHeight = 5190
ClientLeft = 60
ClientTop = 450
ClientWidth = 7470
LinkTopic = "Form6"
ScaleHeight = 5190
ScaleWidth = 7470
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 615
Left = 360
Top = 3000
Visible = 0 'False
Width = 2055
_ExtentX = 3625
_ExtentY = 1085
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.CommandButton Command3
BackColor = &H00C0C0FF&
Caption = "返回"
Height = 375
Left = 5280
Style = 1 'Graphical
TabIndex = 5
Top = 3720
Width = 1455
End
Begin VB.CommandButton Command2
BackColor = &H00C0C0FF&
Caption = "取消"
Height = 375
Left = 2880
Style = 1 'Graphical
TabIndex = 4
Top = 3720
Width = 1455
End
Begin VB.CommandButton Command1
BackColor = &H00C0C0FF&
Caption = "确定"
DisabledPicture = "minaxiugai.frx":0000
Height = 375
Left = 480
MaskColor = &H8000000F&
Style = 1 'Graphical
TabIndex = 3
Top = 3720
Width = 1455
End
Begin VB.TextBox Text3
Height = 375
IMEMode = 3 'DISABLE
Left = 3240
PasswordChar = "*"
TabIndex = 2
Top = 2280
Width = 3135
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 3240
PasswordChar = "*"
TabIndex = 1
Top = 1320
Width = 3135
End
Begin VB.TextBox Text1
DataSource = "Adodc1"
Height = 375
IMEMode = 3 'DISABLE
Left = 3240
PasswordChar = "*"
TabIndex = 0
Top = 360
Width = 3135
End
Begin MSComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 375
Left = 0
TabIndex = 6
Top = 4815
Width = 7470
_ExtentX = 13176
_ExtentY = 661
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 4
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
Alignment = 1
TextSave = "2004-12-24"
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
Alignment = 1
TextSave = "7:39"
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Alignment = 1
Object.Width = 7038
MinWidth = 7038
Text = "学生管理系统"
TextSave = "学生管理系统"
EndProperty
BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Alignment = 1
EndProperty
EndProperty
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "请确认您的新密码"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000080&
Height = 255
Left = 960
TabIndex = 9
Top = 2400
Width = 1935
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "请输入您的新密码"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000080&
Height = 255
Left = 960
TabIndex = 8
Top = 1440
Width = 2055
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "请输入您当前的密码"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000080&
Height = 255
Left = 960
TabIndex = 7
Top = 480
Width = 2055
End
Begin VB.Image Image1
Height = 5895
Left = -600
Picture = "minaxiugai.frx":7ED2
Top = -120
Width = 8310
End
End
Attribute VB_Name = "ChangePwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim sun As String
sun = ChangePwd.StatusBar1.Panels(4).Text
Adodc1.RecordSource = "select user_password from Manage_user where user_name = '" & sun & "'"
Adodc1.Refresh
If Trim(Text1.Text <> Adodc1.Recordset.Fields("user_password")) Then
MsgBox "您输入的密码不正确!"
Text1.SetFocus
Text1.Text = ""
Else
If Trim(Text2.Text) <> Trim(Text3.Text) Then
MsgBox "新密码输入不正确!", vbOKOnly + vbExclamation, "警告"
Text2.SetFocus
Text3.Text = ""
Else
Adodc1.Recordset.Fields("user_password") = Text2.Text
Adodc1.Recordset.Update
Adodc1.Refresh
MsgBox "密码修改成功!", vbOKOnly + vbExclamation, "修改密码"
End If
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text1.SetFocus
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Adodc1.ConnectionString = cnn()
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -