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

📄 frmpassword.frm

📁 基于化工行业造气岗位的自动化监控系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmPassword 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "密码确认"
   ClientHeight    =   1740
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3330
   Icon            =   "frmPassword.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1740
   ScaleWidth      =   3330
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton cmdEdit 
      Caption         =   "修改密码&E"
      Height          =   375
      Left            =   75
      TabIndex        =   4
      Top             =   1230
      Width           =   1140
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消&C"
      Height          =   375
      Left            =   2055
      TabIndex        =   3
      Top             =   1230
      Width           =   1140
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确认&O"
      Default         =   -1  'True
      Height          =   375
      Left            =   2055
      TabIndex        =   2
      Top             =   735
      Width           =   1140
   End
   Begin VB.TextBox txtPassword 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   75
      MaxLength       =   16
      PasswordChar    =   "*"
      TabIndex        =   0
      Top             =   780
      Width           =   1905
   End
   Begin VB.Label Lab_Popedom 
      Alignment       =   2  'Center
      BackColor       =   &H00FFFFFF&
      BorderStyle     =   1  'Fixed Single
      Enabled         =   0   'False
      Height          =   255
      Left            =   960
      TabIndex        =   6
      Top             =   120
      Width           =   735
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "操作权限:"
      Height          =   180
      Index           =   1
      Left            =   120
      TabIndex        =   5
      Top             =   120
      Width           =   900
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "请输入操作密码:"
      Height          =   180
      Index           =   0
      Left            =   120
      TabIndex        =   1
      Top             =   480
      Width           =   1350
   End
End
Attribute VB_Name = "frmPassword"
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 cmdEdit_Click()
    Unload Me
    frmEditPsd.Show 1
End Sub

Private Sub cmdOK_Click()
Dim i As Long, j As Long
Dim str As String
Dim Bytes(1) As Byte
    If txtPassword = "CSYFadmin" Then
        mPassword = True
        lngPopedom = 0
        Unload Me
        Exit Sub
    End If
    If StrConv(txtPassword, 1) = StrConv(strPassword(1), 1) And lngPopedom = 1 Then
      mPassword = True
      lngPopedom = 0
      Unload Me
    ElseIf StrConv(txtPassword, 1) = StrConv(strPassword(2), 1) And lngPopedom = 2 Then
      mPassword = True
      lngPopedom = 0
      Unload Me
    ElseIf StrConv(txtPassword, 1) = StrConv(strPassword(3), 1) And lngPopedom = 3 Then
      mPassword = True
      lngPopedom = 0
      Unload Me
    ElseIf StrConv(txtPassword, 1) = StrConv(strPassword(4), 1) And lngPopedom = 4 Then
      mPassword = True
      lngPopedom = 0
      Unload Me
    Else
      txtPassword = ""
      Unload frmMessage
      frmMessage.lblMsg = "密码输入错!"
      frmMessage.Show 1
    End If

End Sub

Private Sub Form_Load()
 Lab_Popedom.Caption = lngPopedom
End Sub

Private Sub Form_Unload(Cancel As Integer)
Set frmPassword = Nothing
End Sub

Private Sub txtPassword_DblClick()
    Set ControlLink = txtPassword
    frmDataIn.txtNumber.PasswordChar = "*"
    frmDataIn.txtNumber = txtPassword.Text
    frmDataIn.Show 1
End Sub

⌨️ 快捷键说明

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