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

📄 password.frm

📁 学生信息管理系统.一个简单的学生信息管理系统,可以做些日常学生信息的管理.
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Password 
   Caption         =   "修改用户口令"
   ClientHeight    =   3915
   ClientLeft      =   645
   ClientTop       =   420
   ClientWidth     =   4560
   LinkTopic       =   "Form1"
   ScaleHeight     =   3915
   ScaleWidth      =   4560
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox txtNewPWD 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Index           =   1
      Left            =   1320
      PasswordChar    =   "*"
      TabIndex        =   7
      Top             =   1920
      Width           =   1935
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   720
      Top             =   3240
      Visible         =   0   'False
      Width           =   3135
      _ExtentX        =   5530
      _ExtentY        =   582
      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         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\学生信息管理系统\数据库\网络0431班学生名单.MDB;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\学生信息管理系统\数据库\网络0431班学生名单.MDB;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 系统用户"
      Caption         =   "            修改口令"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Caption         =   "关闭"
      Height          =   495
      Left            =   2520
      TabIndex        =   5
      Top             =   2520
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "修改"
      Default         =   -1  'True
      Height          =   495
      Left            =   480
      TabIndex        =   4
      Top             =   2520
      Width           =   1335
   End
   Begin VB.TextBox txtNewPWD 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Index           =   0
      Left            =   1320
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1320
      Width           =   1935
   End
   Begin VB.TextBox txtOldPWD 
      DataField       =   "口令"
      DataSource      =   "Adodc1"
      Height          =   405
      Left            =   1320
      TabIndex        =   1
      Top             =   480
      Width           =   1935
   End
   Begin VB.Label Label5 
      ForeColor       =   &H000000FF&
      Height          =   255
      Left            =   1800
      TabIndex        =   9
      Top             =   120
      Width           =   1455
   End
   Begin VB.Label Label4 
      Caption         =   "当前用户名为:"
      Height          =   255
      Left            =   480
      TabIndex        =   8
      Top             =   120
      Width           =   1455
   End
   Begin VB.Label Label3 
      Caption         =   "确认:"
      Height          =   255
      Left            =   600
      TabIndex        =   6
      Top             =   2040
      Width           =   495
   End
   Begin VB.Label Label2 
      Caption         =   "新口令:"
      Height          =   255
      Left            =   480
      TabIndex        =   2
      Top             =   1440
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "旧口令:"
      Height          =   255
      Left            =   480
      TabIndex        =   0
      Top             =   600
      Width           =   735
   End
End
Attribute VB_Name = "Password"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
 If txtNewPWD(1) <> txtNewPWD(0) Then   '验证两次输入的新口令是否相同
        MsgBox "两次输入的新口令必须相等!", vbExclamation, "修改口令"
        txtNewPWD(0).SetFocus
        txtNewPWD(0).SelStart = 0: txtNewPWD(0).SelLength = Len(txtNewPWD(0))
    Else            '修改原来的口令
        With Adodc1.Recordset
            .Find "用户名='" & CurrentUserName & "'"
            .Fields("口令") = Trim(txtNewPWD(0))
            .Update
        End With
        MsgBox "口令以被成功修改!", vbInformation, "修改口令"
        Unload Me
    End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub


Private Sub Form_Load()
    txtOldPWD = CurrentUserPassword  '显示用户名和口令
    Label5.Caption = CurrentUserName
End Sub

⌨️ 快捷键说明

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