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

📄 frmpasswordset.frm

📁 社区医疗系统实现了数字电压计参数的无线传送和温度参数的传送
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmPassWordSet 
   Caption         =   "设置新密码"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Height          =   1575
      Left            =   480
      TabIndex        =   2
      Top             =   480
      Width           =   2535
      Begin VB.TextBox txtSpecPass2 
         Height          =   375
         Left            =   840
         TabIndex        =   6
         Top             =   960
         Width           =   1215
      End
      Begin VB.TextBox txtSpecPass1 
         Height          =   390
         Left            =   840
         TabIndex        =   3
         Top             =   240
         Width           =   1215
      End
      Begin VB.Label Label4 
         Caption         =   "确认:"
         Height          =   375
         Left            =   120
         TabIndex        =   5
         Top             =   960
         Width           =   615
      End
      Begin VB.Label Label3 
         Caption         =   "密码:"
         Height          =   375
         Left            =   120
         TabIndex        =   4
         Top             =   360
         Width           =   615
      End
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消"
      Height          =   375
      Left            =   3240
      TabIndex        =   1
      Top             =   1560
      Width           =   975
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定"
      Height          =   375
      Left            =   3240
      TabIndex        =   0
      Top             =   840
      Width           =   975
   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 "ch", "PassWord", "SpecPassWord", txtSpecPass1.Text
    g_SpecPassWord = txtSpecPass1.Text
    Unload Me
End Sub

Private Sub Form_Load()
    txtSpecPass1.Text = GetSetting("ch", "PassWord", "g_SpecPassWord")
    txtSpecPass2.Text = GetSetting("ch", "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 + -