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

📄 frmupdatepwd.frm

📁 VB税控的源代码 主要用于地方税务局的税控引用 有完整的控件和代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmUpdatePwd 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "修改开票密码"
   ClientHeight    =   1875
   ClientLeft      =   45
   ClientTop       =   270
   ClientWidth     =   3780
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   9
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1875
   ScaleWidth      =   3780
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton cmdCancel 
      Caption         =   "退出(&E)"
      Height          =   375
      Left            =   2400
      TabIndex        =   5
      Top             =   1350
      Width           =   1065
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定(&O)"
      Height          =   375
      Left            =   1230
      TabIndex        =   4
      Top             =   1350
      Width           =   1065
   End
   Begin VB.TextBox txtPWDN 
      Height          =   345
      IMEMode         =   3  'DISABLE
      Left            =   1470
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   780
      Width           =   1995
   End
   Begin VB.TextBox txtPWDO 
      Height          =   345
      IMEMode         =   3  'DISABLE
      Left            =   1470
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   270
      Width           =   1995
   End
   Begin VB.Label Label2 
      Caption         =   "确认新密码:"
      Height          =   300
      Left            =   390
      TabIndex        =   1
      Top             =   840
      Width           =   1035
   End
   Begin VB.Label Label1 
      Caption         =   "新密码:"
      Height          =   285
      Left            =   390
      TabIndex        =   0
      Top             =   330
      Width           =   795
   End
End
Attribute VB_Name = "frmUpdatePwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
    gsOpencodeN = ""
    Unload Me
End Sub

Private Sub cmdOK_Click()
    If txtPWDO.Text = "" Then
        MsgBox "旧密码不能空,请确认!", vbOKOnly + vbInformation, "提示信息"
        Exit Sub
    End If
        
    If txtPWDN.Text = "" Then
        MsgBox "新密码不能空,请确认!", vbOKOnly + vbInformation, "提示信息"
        Exit Sub
    End If
    
    If bCheckCharacter = False Then
        MsgBox "符号(')是本系统的特殊符号,请您选择别的符号代替它!", vbOKOnly + vbInformation, "提示信息"
        Exit Sub
    End If
    
    If txtPWDO.Text <> txtPWDN.Text Then
        MsgBox "新密码不正确,请重新输入!", vbOKOnly + vbInformation, "提示信息"
        txtPWDN.Text = ""
        txtPWDO.Text = ""
        txtPWDO.SetFocus
        Exit Sub
    End If
    
'    gsOpenCode = txtPWDO.Text
    gsOpencodeN = txtPWDN.Text
    Unload Me
End Sub


Private Function bCheckCharacter() As Boolean
    
    bCheckCharacter = False
    
    If Len(txtPWDO.Text) > 0 Then
        If InStr(txtPWDO.Text, "'") > 0 Then
            txtPWDO.SetFocus
            Exit Function
        End If
    End If
    
    If Len(txtPWDN.Text) > 0 Then
        If InStr(txtPWDN.Text, "'") > 0 Then
            txtPWDN.SetFocus
            Exit Function
        End If
    End If
    
    bCheckCharacter = True
End Function

Private Sub Form_Load()
    gsOpencodeN = ""
End Sub

⌨️ 快捷键说明

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