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

📄 修改密码.frm

📁 学校机房的上机管理系统.可以安排免费上机,可以收费上机.适合中小型机房.修改后也可以作为网吧管理软件.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Dialog 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "修改密码"
   ClientHeight    =   2715
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   3375
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2715
   ScaleWidth      =   3375
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox Text3 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1320
      PasswordChar    =   "*"
      TabIndex        =   7
      Top             =   1440
      Width           =   1695
   End
   Begin VB.TextBox Text2 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1320
      PasswordChar    =   "*"
      TabIndex        =   6
      Top             =   840
      Width           =   1695
   End
   Begin VB.TextBox Text1 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1320
      MaxLength       =   20
      PasswordChar    =   "*"
      TabIndex        =   5
      Top             =   240
      Width           =   1695
   End
   Begin VB.CommandButton CancelButton 
      Caption         =   "退出"
      Height          =   375
      Left            =   1680
      TabIndex        =   1
      Top             =   2040
      Width           =   1215
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "确定"
      Height          =   375
      Left            =   240
      TabIndex        =   0
      Top             =   2040
      Width           =   1215
   End
   Begin VB.Label Label3 
      Caption         =   "再输入一遍"
      Height          =   375
      Left            =   240
      TabIndex        =   4
      Top             =   1440
      Width           =   615
   End
   Begin VB.Label Label2 
      Caption         =   "新密码"
      Height          =   375
      Left            =   240
      TabIndex        =   3
      Top             =   840
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "旧密码"
      Height          =   255
      Left            =   240
      TabIndex        =   2
      Top             =   240
      Width           =   735
   End
End
Attribute VB_Name = "Dialog"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CancelButton_Click()
Unload Me
End Sub

Private Sub OKButton_Click()
If Trim(rec_info.Fields(1).Value) = Text1.Text Then
    If Trim(Text2.Text) <> Trim(Text3.Text) Then
       MsgBox "两次密码输入不一致,请确认!", vbOKOnly + vbExclamation, "警告"
      Else
       r = MsgBox("确认重置密码吗?", vbYesNo)
       If r = vbYes Then
         If Text2.Text = "" And Text3.Text = "" Then
           MsgBox "密码不能为空!", vbOKOnly + vbExclamation, "警告"
         Else
         rec_info.Fields(1).Value = Text2.Text
         rec_info.Update
         MsgBox "修改成功!"
         End If
       End If
    End If
Else
MsgBox "原始密码错误!", vbOKOnly + vbExclamation, "警告"
End If
End Sub

⌨️ 快捷键说明

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