📄 form3.frm
字号:
VERSION 5.00
Begin VB.Form Form3
BorderStyle = 1 'Fixed Single
Caption = "修改个人信息"
ClientHeight = 2550
ClientLeft = 45
ClientTop = 330
ClientWidth = 4005
Icon = "Form3.frx":0000
LinkTopic = "Form3"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "Form3.frx":1782
ScaleHeight = 2550
ScaleWidth = 4005
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Appearance = 0 'Flat
BackColor = &H00FFC0FF&
Caption = "修改"
Height = 300
Left = 840
Picture = "Form3.frx":2C40
Style = 1 'Graphical
TabIndex = 6
Top = 1680
Width = 735
End
Begin VB.CommandButton Command2
Appearance = 0 'Flat
Caption = "关闭"
Height = 300
Left = 2400
Picture = "Form3.frx":3DE4
Style = 1 'Graphical
TabIndex = 5
Top = 1680
Width = 735
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
BackColor = &H00FFC0C0&
Height = 300
IMEMode = 3 'DISABLE
Index = 1
Left = 1680
PasswordChar = "*"
TabIndex = 4
Top = 720
Width = 1815
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
BackColor = &H00FFC0C0&
Height = 300
IMEMode = 3 'DISABLE
Index = 2
Left = 1680
PasswordChar = "*"
TabIndex = 3
Top = 1200
Width = 1815
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
BackColor = &H00FFC0C0&
Enabled = 0 'False
Height = 300
Index = 0
Left = 1680
TabIndex = 2
Top = 240
Width = 1815
End
Begin VB.PictureBox PicCaption
AutoRedraw = -1 'True
AutoSize = -1 'True
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 720
Left = 3600
Picture = "Form3.frx":4F88
ScaleHeight = 720
ScaleWidth = 9600
TabIndex = 0
TabStop = 0 'False
Top = 0
Visible = 0 'False
Width = 9600
Begin VB.PictureBox PicBorder
AutoRedraw = -1 'True
AutoSize = -1 'True
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 150
Left = 0
Picture = "Form3.frx":1B7CC
ScaleHeight = 150
ScaleWidth = 1050
TabIndex = 1
TabStop = 0 'False
Top = 0
Visible = 0 'False
Width = 1050
End
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "新 密 码:"
ForeColor = &H00FF0000&
Height = 255
Left = 480
TabIndex = 9
Top = 780
Width = 975
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "确认新密码:"
ForeColor = &H00FF0000&
Height = 255
Left = 360
TabIndex = 8
Top = 1275
Width = 1215
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "用 户 名:"
ForeColor = &H00FF0000&
Height = 255
Left = 480
TabIndex = 7
Top = 300
Width = 975
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim ln As Long
Dim i, j, lyx, m As Integer
Dim sqlstring, ghz As String
For j = 1 To 2
If Text1(j).Text = "" Then
MsgBox "旧密码、新密码不能为空!", vbInformation, "提示"
Exit Sub
End If
Next
If Text1(1).Text = Text1(2).Text Then
hconn.Execute "update 权限设置 set 密码='" & Text1(2).Text & "' where 姓名= '" & username & "'"
Else
MsgBox "请保持密码一致", vbInformation, "提示"
Exit Sub
End If
ln = MsgBox("密码修改完毕!", vbInformation, "提示")
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Set mc_cN = New cNeoCaption '''漂亮窗体
Skin Me, mc_cN
Text1(0).Text = username
End Sub
Private Sub Skin(f As Form, cn As cNeoCaption)
cn.ActiveCaptionColor = &HFFFFFF
cn.InActiveCaptionColor = &HC0C0C0
cn.ActiveMenuColor = &H0&
cn.ActiveMenuColorOver = &H0
cn.InActiveMenuColor = &H0&
cn.MenuBackgroundColor = RGB(207, 203, 207)
cn.CaptionFont.Name = "宋体"
cn.CaptionFont.Size = 9
cn.MenuFont.Name = "宋体"
cn.MenuFont.Size = 9
cn.Attach f, f.PicCaption.Picture, f.PicBorder.Picture, 19, 20, 90, 140, 240, 400
f.BackColor = RGB(207, 203, 207)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -