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

📄 changepassword.frm

📁 OpenPlayer代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form ChangePassWord 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "更改密码"
   ClientHeight    =   1590
   ClientLeft      =   3495
   ClientTop       =   3705
   ClientWidth     =   5955
   Icon            =   "ChangePassWord.frx":0000
   LinkTopic       =   "Form6"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1590
   ScaleWidth      =   5955
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   375
      Left            =   4860
      TabIndex        =   6
      Top             =   930
      Width           =   1035
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确认"
      Height          =   375
      Left            =   4860
      TabIndex        =   5
      Top             =   330
      Width           =   1035
   End
   Begin VB.TextBox TextPass 
      Height          =   315
      IMEMode         =   3  'DISABLE
      Index           =   1
      Left            =   2820
      PasswordChar    =   "*"
      TabIndex        =   4
      Top             =   1110
      Width           =   1815
   End
   Begin VB.TextBox TextPass 
      Height          =   315
      IMEMode         =   3  'DISABLE
      Index           =   0
      Left            =   2820
      PasswordChar    =   "#"
      TabIndex        =   3
      Top             =   630
      Width           =   1815
   End
   Begin VB.Label Label3 
      Caption         =   "确认密码:"
      Height          =   225
      Left            =   120
      TabIndex        =   2
      Top             =   1110
      Width           =   2295
   End
   Begin VB.Label Label2 
      Caption         =   "新密码:"
      Height          =   255
      Left            =   150
      TabIndex        =   1
      Top             =   660
      Width           =   2235
   End
   Begin VB.Label Label1 
      Caption         =   "更改Windows 屏幕保护程序的密码:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   225
      Left            =   90
      TabIndex        =   0
      Top             =   90
      Width           =   4335
   End
End
Attribute VB_Name = "ChangePassWord"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub cmdOK_Click()
    Dim strIniFile As String
    
    strIniFile = App.Path & IIf(Len(App.Path) < 4, App.EXEName & ".ini", "\" & App.EXEName & ".ini")
    
    If TextPass(0).Text = TextPass(1).Text Then
        '转为vbFromUnicode(?),写入ini文件
        myWriteINI strIniFile, "SuperScreenSaver Config", "PassWord", StrConv(TextPass(0).Text, vbFromUnicode)
        MsgBox "密码更改成功!", vbInformation, "更改密码"
        Unload Me
    Else
        MsgBox "两次输入的密码不一样!", vbOKOnly + vbCritical, "密码错误"
        TextPass(0).SetFocus
    End If
    
End Sub

Private Sub TextPass_KeyPress(Index As Integer, KeyAscii As Integer)
    If KeyAscii = vbKeyReturn Then
        '回车键,跳到[确认密码]文件框
        KeyAscii = 0
        If Index = 0 Then
            TextPass(1).SetFocus
        Else
            Call cmdOK_Click
        End If
    End If
End Sub

⌨️ 快捷键说明

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