⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmmodipass.frm

📁 学院MIS管理系统,适合大部分毕业生,请大家支持
💻 FRM
字号:
VERSION 5.00
Object = "{1666F204-B71B-4E6D-AA21-DCE71B94F422}#7.0#0"; "SmartXpButton.ocx"
Begin VB.Form FrmModipass 
   BackColor       =   &H8000000B&
   BorderStyle     =   0  'None
   ClientHeight    =   3315
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   3945
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   221
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   263
   Begin VB.TextBox password 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   1845
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   1155
      Width           =   1600
   End
   Begin VB.TextBox repass 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   1845
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1965
      Width           =   1600
   End
   Begin SmartXpButton.SmartNetXpButton Comok 
      Height          =   375
      Left            =   600
      TabIndex        =   0
      Top             =   2640
      Width           =   975
      _ExtentX        =   1720
      _ExtentY        =   661
      BackColor       =   -2147483637
      BackColorPop    =   12648384
      CaptionAreaLayout=   1
      Caption         =   "确定"
      CaptionBackColor=   12640511
      ShowCaption     =   -1  'True
      ShowPushColor   =   0   'False
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Picture         =   "FrmModipass.frx":0000
      ShowPictureFixSize=   -1  'True
      PictureFixWidth =   24
      PictureFixHeight=   24
      Hotkeys         =   "q"
   End
   Begin SmartXpButton.SmartNetXpButton Comcancel 
      Height          =   375
      Left            =   2520
      TabIndex        =   8
      Top             =   2640
      Width           =   975
      _ExtentX        =   1720
      _ExtentY        =   661
      BackColor       =   -2147483637
      BackColorPop    =   12648384
      CaptionAreaLayout=   1
      Caption         =   "取消"
      CaptionBackColor=   12640511
      ShowCaption     =   -1  'True
      ShowPushColor   =   0   'False
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Picture         =   "FrmModipass.frx":015A
      ShowPictureFixSize=   -1  'True
      PictureFixWidth =   24
      PictureFixHeight=   24
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FF8080&
      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       =   &H00000000&
      Height          =   375
      Left            =   480
      TabIndex        =   7
      Top             =   1155
      Width           =   1455
   End
   Begin VB.Label Label2 
      BackColor       =   &H00FF8080&
      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       =   &H00000000&
      Height          =   375
      Left            =   480
      TabIndex        =   6
      Top             =   1965
      Width           =   1455
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackColor       =   &H00FF8080&
      BackStyle       =   0  'Transparent
      Caption         =   "您的用户名是:"
      ForeColor       =   &H00808000&
      Height          =   180
      Left            =   480
      TabIndex        =   5
      Top             =   600
      Width           =   1260
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      BackColor       =   &H00FF8080&
      BackStyle       =   0  'Transparent
      ForeColor       =   &H00808000&
      Height          =   180
      Left            =   1800
      TabIndex        =   4
      Top             =   600
      Width           =   90
   End
   Begin VB.Label lblTitle 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "修改密码"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   240
      Left            =   0
      TabIndex        =   1
      Top             =   0
      Width           =   1020
   End
   Begin VB.Image imgTitleMinimize 
      Height          =   195
      Left            =   2760
      Picture         =   "FrmModipass.frx":0334
      Top             =   3600
      Width           =   195
   End
   Begin VB.Image imgTitleClose 
      Height          =   195
      Left            =   2760
      Picture         =   "FrmModipass.frx":057E
      Top             =   3240
      Width           =   195
   End
   Begin VB.Image imgTitleHelp 
      Height          =   195
      Left            =   2760
      Picture         =   "FrmModipass.frx":07C8
      Top             =   2880
      Width           =   195
   End
   Begin VB.Image imgTitleLeft 
      Height          =   450
      Left            =   1320
      Picture         =   "FrmModipass.frx":0A12
      Top             =   2880
      Width           =   285
   End
   Begin VB.Image imgTitleRight 
      Height          =   450
      Left            =   1680
      Picture         =   "FrmModipass.frx":115C
      Top             =   2880
      Width           =   285
   End
   Begin VB.Image imgWindowBottomLeft 
      Height          =   450
      Left            =   2040
      Picture         =   "FrmModipass.frx":18A6
      Top             =   2880
      Width           =   285
   End
   Begin VB.Image imgWindowBottomRight 
      Height          =   450
      Left            =   2400
      Picture         =   "FrmModipass.frx":1FF0
      Top             =   2880
      Width           =   285
   End
   Begin VB.Image imgTitleMain 
      Height          =   450
      Left            =   1320
      Picture         =   "FrmModipass.frx":273A
      Stretch         =   -1  'True
      Top             =   3360
      Width           =   285
   End
   Begin VB.Image imgWindowBottom 
      Height          =   450
      Left            =   1680
      Picture         =   "FrmModipass.frx":2E84
      Stretch         =   -1  'True
      Top             =   3360
      Width           =   285
   End
   Begin VB.Image imgWindowLeft 
      Height          =   450
      Left            =   2040
      Picture         =   "FrmModipass.frx":35CE
      Stretch         =   -1  'True
      Top             =   3360
      Width           =   285
   End
   Begin VB.Image imgWindowRight 
      Height          =   450
      Left            =   2400
      Picture         =   "FrmModipass.frx":3D18
      Stretch         =   -1  'True
      Top             =   3360
      Width           =   285
   End
End
Attribute VB_Name = "FrmModipass"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

'初始化窗口,使用户名为空
Private Sub Form_Load()
   FrmModipass.Label4.Caption = username
   password.Text = ""
   repass.Text = ""
    MakeWindow Me
    AlwaysOnTop Me, True
End Sub

Private Sub imgTitleClose_Click()
    Unload Me
End Sub

Private Sub imgTitleHelp_Click()
    MsgBox "You can insert code here for loading a help file."
End Sub

Private Sub imgTitleLeft_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    DoDrag Me
End Sub

Private Sub imgTitleMain_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    DoDrag Me
End Sub

Private Sub imgTitleMinimize_Click()
    Me.WindowState = 1
End Sub

Private Sub imgTitleRight_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    DoDrag Me
End Sub

Private Sub lblTitle_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    DoDrag Me
End Sub
'定义取消按钮
Private Sub Comcancel_Click()
 Unload Me
End Sub
'定义确定按钮
Private Sub Comok_Click()
Dim txtSQL As String
    Dim mrc As ADODB.Recordset
    Dim MsgText As String
    '判断两次输入的密码是否一样
   If username <> "Administrator" Then
     If Trim(password.Text) <> Trim(repass.Text) Then
       MsgBox "两次输入的密码不一样!", vbOKOnly + vbExclamation, "警告"
       password.SetFocus
       password.Text = ""
       repass.Text = ""
     Else
       txtSQL = "select*from User_infor where user_id='" & username & "'"
       Set mrc = ExecuteSQL(txtSQL, MsgText)
       mrc.Fields(1) = repass.Text
       mrc.Update
       mrc.Close
       MsgBox "密码修改成功!", vbOKOnly + vbExclamation, "修改密码"
       Me.Hide
     End If
    Else
         If repass.Text = "" Then
         MsgBox "您是管理员,密码不能为空!", vbOKOnly + vbExclamation, "警告"
         password.SetFocus
        
         Else
             If Trim(password.Text) <> Trim(repass.Text) Then
               MsgBox "两次输入的密码不一样!", vbOKOnly + vbExclamation, "警告"
               password.SetFocus
               password.Text = ""
               repass.Text = ""
             Else
               txtSQL = "select*from User_infor where user_id='" & username & "'"
              Set mrc = ExecuteSQL(txtSQL, MsgText)
              mrc.Fields(1) = repass.Text
              mrc.Update
              mrc.Close
              MsgBox "密码修改成功!", vbOKOnly + vbExclamation, "修改密码"
              Me.Hide
            End If
  End If
  End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -