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

📄 frmclockpwdlg.frm

📁 一款基于标准IC卡考勤数据读写操作示例的开发源程序。主要给需要开发IC卡和考勤系统的网友学习参考用
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmClockPW 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "更改设备密码"
   ClientHeight    =   2310
   ClientLeft      =   4530
   ClientTop       =   4350
   ClientWidth     =   3930
   LinkTopic       =   "Form3"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2310
   ScaleWidth      =   3930
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox txOKPw 
      Height          =   285
      IMEMode         =   3  'DISABLE
      Left            =   1560
      MaxLength       =   12
      PasswordChar    =   "*"
      TabIndex        =   7
      Top             =   1080
      Width           =   1575
   End
   Begin VB.TextBox txNewPW 
      Height          =   285
      IMEMode         =   3  'DISABLE
      Left            =   1560
      MaxLength       =   12
      PasswordChar    =   "*"
      TabIndex        =   6
      Top             =   600
      Width           =   1575
   End
   Begin VB.TextBox txOldPW 
      Height          =   285
      IMEMode         =   3  'DISABLE
      Left            =   1560
      MaxLength       =   12
      PasswordChar    =   "*"
      TabIndex        =   5
      Top             =   120
      Width           =   1575
   End
   Begin VB.CommandButton btnCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   375
      Left            =   2160
      TabIndex        =   4
      Top             =   1800
      Width           =   1095
   End
   Begin VB.CommandButton btnOK 
      Caption         =   "确定"
      Height          =   375
      Left            =   840
      TabIndex        =   3
      Top             =   1800
      Width           =   975
   End
   Begin VB.Label Label3 
      Caption         =   "设备确认密码"
      Height          =   255
      Left            =   360
      TabIndex        =   2
      Top             =   1080
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "设备新密码"
      Height          =   255
      Left            =   360
      TabIndex        =   1
      Top             =   600
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "设备原密码"
      Height          =   255
      Left            =   360
      TabIndex        =   0
      Top             =   120
      Width           =   975
   End
End
Attribute VB_Name = "FrmClockPW"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2008/03/08
'描    述:标准太平洋IC考勤机开发读写数据示例
'网    站:http://www.Mndsoft.com/  (VB6源码博客)
'网    站:http://www.VbDnet.com/   (VB.NET源码博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************

Public OkFlag As Boolean

Private Sub btnCancel_Click()
 OkFlag = False
 Hide
End Sub

Private Sub btnOK_Click()
  OkFlag = True
  If (Len(txOldPW.Text) <> 12) Or (Len(txNewPW.Text) <> 12) Or (Len(txOKPw.Text) <> 12) Then
    MsgBox ("密码长度必须为12位")
    GoTo Ext
  End If
  If txNewPW.Text <> txOKPw.Text Then
    MsgBox ("新密码与确认密码不相同")
    OkFlag = False
    GoTo Ext
  End If
  Hide
Ext:
End Sub

Private Sub Form_Load()
  btnOK.Enabled = False
End Sub

Private Sub txNewPW_Change()
  If (Len(txNewPW.Text) = 12) And (Len(txOldPW.Text) = 12) And (Len(txOKPw.Text) = 12) Then
    btnOK.Enabled = True
  Else
    btnOK.Enabled = False
  End If
End Sub

Private Sub txOKPw_Change()
  If (Len(txNewPW.Text) = 12) And (Len(txOldPW.Text) = 12) And (Len(txOKPw.Text) = 12) Then
    btnOK.Enabled = True
  Else
    btnOK.Enabled = False
  End If
End Sub

Private Sub txOldPW_Change()
  If (Len(txNewPW.Text) = 12) And (Len(txOldPW.Text) = 12) And (Len(txOKPw.Text) = 12) Then
    btnOK.Enabled = True
  Else
    btnOK.Enabled = False
  End If
End Sub

⌨️ 快捷键说明

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