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

📄 frmpasswordset.frm

📁 用vb编程实现对交通拍照的交通控制管理
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmPassWordSet 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "设置新密码"
   ClientHeight    =   1770
   ClientLeft      =   30
   ClientTop       =   330
   ClientWidth     =   4200
   Icon            =   "frmPassWordSet.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1770
   ScaleWidth      =   4200
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame2 
      Height          =   1560
      Left            =   120
      TabIndex        =   4
      Top             =   72
      Width           =   2676
      Begin VB.TextBox txtSpecPass1 
         Height          =   324
         IMEMode         =   3  'DISABLE
         Left            =   660
         PasswordChar    =   "*"
         TabIndex        =   0
         Top             =   336
         Width           =   1812
      End
      Begin VB.TextBox txtSpecPass2 
         Height          =   324
         IMEMode         =   3  'DISABLE
         Left            =   660
         PasswordChar    =   "*"
         TabIndex        =   1
         Top             =   900
         Width           =   1812
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "确认:"
         Height          =   180
         Left            =   168
         TabIndex        =   6
         Top             =   912
         Width           =   540
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "密码:"
         Height          =   180
         Left            =   168
         TabIndex        =   5
         Top             =   348
         Width           =   540
      End
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确认"
      Default         =   -1  'True
      Height          =   360
      Left            =   2988
      TabIndex        =   2
      Top             =   360
      Width           =   1068
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   360
      Left            =   2988
      TabIndex        =   3
      Top             =   972
      Width           =   1068
   End
End
Attribute VB_Name = "frmPassWordSet"
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()
    txtSpecPass1.Text = Trim(txtSpecPass1.Text)
    txtSpecPass2.Text = Trim(txtSpecPass2.Text)

    If txtSpecPass1.Text = "" Then
        MsgBox "请输入密码"
        txtSpecPass1.SetFocus
        Exit Sub
    ElseIf txtSpecPass2.Text <> txtSpecPass1.Text Then
        MsgBox "密码确认不正确"
        txtSpecPass1.Text = ""
        txtSpecPass2.Text = ""
        txtSpecPass1.SetFocus
        Exit Sub
    End If
    
    SaveSetting "SEP", "PassWord", "SpecPassWord", txtSpecPass1.Text
    g_SpecPassWord = txtSpecPass1.Text
    
    Unload Me
End Sub

Private Sub Form_Load()
    txtSpecPass1.Text = GetSetting("SEP", "PassWord", "g_SpecPassWord")
    txtSpecPass2.Text = GetSetting("SEP", "PassWord", "g_SpecPassWord")
End Sub

Private Sub txtSpecPass1_GotFocus()
    txtSpecPass1.SelStart = 0
    txtSpecPass1.SelLength = Len(txtSpecPass1.Text)
End Sub

Private Sub txtSpecPass2_GotFocus()
    txtSpecPass2.SelStart = 0
    txtSpecPass2.SelLength = Len(txtSpecPass2.Text)
End Sub

⌨️ 快捷键说明

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