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

📄 dialog1.frm

📁 金融机构用于银行承兑票台帐的登记以及统计打印各种报表
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Dialog1 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "高级用户密码更改"
   ClientHeight    =   2265
   ClientLeft      =   3825
   ClientTop       =   2805
   ClientWidth     =   4575
   Icon            =   "Dialog1.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2265
   ScaleWidth      =   4575
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox Text3 
      DataField       =   "高级用户密码"
      DataSource      =   "Adodc1"
      Height          =   390
      Left            =   1080
      TabIndex        =   10
      Top             =   2400
      Width           =   1335
   End
   Begin VB.CommandButton Command2 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   320
      Left            =   3240
      TabIndex        =   9
      Top             =   1800
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Default         =   -1  'True
      Height          =   320
      Left            =   1800
      TabIndex        =   8
      Top             =   1800
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "注意!"
      Height          =   1335
      Left            =   2280
      TabIndex        =   6
      Top             =   240
      Width           =   2055
      Begin VB.Label Label4 
         Caption         =   "   密码必须是六位,并且区分大小写。密码丢失,将无法进入系统,请一定要牢记您的密码!"
         Height          =   975
         Left            =   120
         TabIndex        =   7
         Top             =   240
         Width           =   1695
      End
   End
   Begin VB.TextBox Text4 
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   1320
      PasswordChar    =   "*"
      TabIndex        =   5
      Top             =   1320
      Width           =   735
   End
   Begin VB.TextBox Text2 
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   1320
      PasswordChar    =   "*"
      TabIndex        =   4
      Top             =   840
      Width           =   735
   End
   Begin VB.TextBox Text1 
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   1320
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   360
      Width           =   735
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   2760
      Top             =   2400
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=autoxtsz.mdb;Persist Security Info=False;Jet OLEDB:Database Password=ZH69Y11Jun24"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=autoxtsz.mdb;Persist Security Info=False;Jet OLEDB:Database Password=ZH69Y11Jun24"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from mm"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label3 
      Caption         =   "确认新密码"
      Height          =   255
      Left            =   360
      TabIndex        =   2
      Top             =   1365
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "新密码"
      Height          =   255
      Left            =   360
      TabIndex        =   1
      Top             =   880
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "旧密码"
      Height          =   255
      Left            =   360
      TabIndex        =   0
      Top             =   400
      Width           =   735
   End
End
Attribute VB_Name = "Dialog1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit

Private Sub Command1_Click()
If Text1 <> Text3 Then
MsgBox "旧密码错误,请重新输入!", vbOKOnly Or vbExclamation, "错误"
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
Exit Sub
End If
If Len(Text2) <> 6 Or Len(Text4) <> 6 Then
MsgBox "密码必须是六位!", vbOKOnly Or vbExclamation, "错误"
Text4 = ""
Text2.SetFocus
Text2.SelStart = 0
Text2.SelLength = Len(Text2.Text)
Exit Sub
End If
If Text1 = Text3 And Text2 = Text4 Then
Text3.Text = Text4.Text
Adodc1.Recordset.MoveNext
Adodc1.Recordset.MovePrevious
MsgBox "密码修改成功!", vbOKOnly Or vbInformation, "系统信息"
Unload Me
ElseIf Text2 <> Text4 Then
MsgBox "新密码不一致,请重新输入!", vbOKOnly Or vbExclamation, "错误"
Text4 = ""
Text2.SetFocus
Text2.SelStart = 0
Text2.SelLength = Len(Text1.Text)
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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