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

📄 frmeditpsd.frm

📁 基于化工行业造气岗位的自动化监控系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmEditPsd 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "密码修改"
   ClientHeight    =   2205
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   2910
   Icon            =   "frmEditPsd.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2205
   ScaleWidth      =   2910
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox txtLng 
      Alignment       =   2  'Center
      Enabled         =   0   'False
      Height          =   270
      Left            =   1050
      TabIndex        =   8
      Top             =   120
      Width           =   1695
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消&C"
      Height          =   375
      Left            =   225
      TabIndex        =   7
      Top             =   1755
      Width           =   1230
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定&O"
      Height          =   375
      Left            =   1575
      TabIndex        =   6
      Top             =   1755
      Width           =   1230
   End
   Begin VB.TextBox txtAffirm 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   1080
      MaxLength       =   16
      PasswordChar    =   "*"
      TabIndex        =   5
      Top             =   1305
      Width           =   1680
   End
   Begin VB.TextBox txtNew 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   1080
      MaxLength       =   16
      PasswordChar    =   "*"
      TabIndex        =   4
      Top             =   900
      Width           =   1680
   End
   Begin VB.TextBox txtOld 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   1080
      MaxLength       =   16
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   495
      Width           =   1680
   End
   Begin VB.Label Label1 
      Alignment       =   1  'Right Justify
      AutoSize        =   -1  'True
      Caption         =   "操作权限"
      Height          =   180
      Index           =   2
      Left            =   240
      TabIndex        =   9
      Top             =   120
      Width           =   720
   End
   Begin VB.Label Label2 
      Alignment       =   1  'Right Justify
      Caption         =   "密码确认"
      Height          =   285
      Left            =   90
      TabIndex        =   3
      Top             =   1350
      Width           =   870
   End
   Begin VB.Label Label1 
      Alignment       =   1  'Right Justify
      Caption         =   "新密码"
      Height          =   285
      Index           =   1
      Left            =   90
      TabIndex        =   2
      Top             =   945
      Width           =   870
   End
   Begin VB.Label Label1 
      Alignment       =   1  'Right Justify
      Caption         =   "原始密码"
      Height          =   285
      Index           =   0
      Left            =   135
      TabIndex        =   0
      Top             =   540
      Width           =   870
   End
End
Attribute VB_Name = "frmEditPsd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub cmdOK_Click()
    If txtOld.Text = strPassword(lngPopedom) Then
        If txtNew.Text = txtAffirm.Text Then
            WritePrivateProfileString "Password", "P" & lngPopedom, txtNew.Text, iniPaths & "system.ini"
            strPassword(lngPopedom) = txtNew.Text
            MsgBox "密码修改成功!", vbOKOnly
        Else
            MsgBox "密码确认错误,请重新输入新密码!", vbOKOnly, ErrorTitle
        End If
        Unload Me
    Else
        MsgBox "原始密码错误,请重新输入!", vbOKOnly, ErrorTitle
    End If
End Sub

Private Sub Form_Resize()
    txtLng = lngPopedom
End Sub

Private Sub txtAffirm_DblClick()
    Set ControlLink = txtAffirm
    frmDataIn.txtNumber = txtAffirm.Text
    frmDataIn.Show
End Sub

Private Sub txtNew_DblClick()
    Set ControlLink = txtNew
    frmDataIn.txtNumber = txtNew.Text
    frmDataIn.Show
End Sub

Private Sub txtOld_DblClick()
    Set ControlLink = txtOld
    frmDataIn.txtNumber = txtOld.Text
    frmDataIn.Show
End Sub

⌨️ 快捷键说明

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