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

📄 main_xtgl_mmsz.frm

📁 是基于C#语言的一个图书综合管理系统的开发案例,相当实用
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form main_xtgl_mmsz 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "系统管理-【修改密码】"
   ClientHeight    =   2430
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5850
   Icon            =   "main_xtgl_mmsz.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2430
   ScaleWidth      =   5850
   StartUpPosition =   1  '所有者中心
   Begin VB.Frame Frame1 
      Height          =   1860
      Left            =   1815
      TabIndex        =   2
      Top             =   -30
      Width           =   3975
      Begin VB.TextBox TxtOMM 
         BackColor       =   &H00FFFFFF&
         Height          =   300
         IMEMode         =   3  'DISABLE
         Left            =   915
         MaxLength       =   50
         PasswordChar    =   "*"
         TabIndex        =   5
         Top             =   840
         Width           =   2880
      End
      Begin VB.TextBox TxtNMM 
         BackColor       =   &H00FFFFFF&
         Height          =   300
         IMEMode         =   3  'DISABLE
         Left            =   915
         MaxLength       =   50
         PasswordChar    =   "*"
         TabIndex        =   4
         Top             =   1365
         Width           =   2880
      End
      Begin MSDataListLib.DataCombo DataCombo1 
         Bindings        =   "main_xtgl_mmsz.frx":0CCA
         Height          =   330
         Left            =   915
         TabIndex        =   3
         Top             =   285
         Width           =   2880
         _ExtentX        =   5080
         _ExtentY        =   582
         _Version        =   393216
         ListField       =   "操作员"
         Text            =   ""
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "操作员                              原密码                            新密码"
         Height          =   1410
         Left            =   285
         TabIndex        =   6
         Top             =   360
         Width           =   1005
      End
   End
   Begin MSAdodcLib.Adodc Adodc2 
      Height          =   330
      Left            =   4530
      Top             =   3195
      Width           =   1335
      _ExtentX        =   2355
      _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         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc2"
      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 MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   2970
      Top             =   3240
      Visible         =   0   'False
      Width           =   1380
      _ExtentX        =   2434
      _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         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      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.CommandButton Command1 
      BackColor       =   &H80000016&
      Caption         =   "&O 确定"
      Height          =   375
      Left            =   2625
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   1905
      Width           =   1575
   End
   Begin VB.CommandButton Command2 
      BackColor       =   &H80000016&
      Caption         =   "&C 取消"
      Height          =   375
      Left            =   4215
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   1905
      Width           =   1575
   End
   Begin VB.Image Image1 
      Height          =   2205
      Left            =   45
      Picture         =   "main_xtgl_mmsz.frx":0CDF
      Stretch         =   -1  'True
      Top             =   30
      Width           =   1680
   End
End
Attribute VB_Name = "main_xtgl_mmsz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
'自动识别路径
Adodc1.ConnectionString = "DSN=NBooks"
Adodc1.RecordSource = "select * from qxb"
Adodc1.Refresh
Adodc2.ConnectionString = "DSN=NBooks"
Adodc2.RecordSource = "select * from qxb"
Adodc2.Refresh
End Sub
Private Sub Form_Unload(Cancel As Integer)
 frm_main.Enabled = True
End Sub
Private Sub datacombo1_KeyDown(KeyCode As Integer, Shift As Integer)
 If KeyCode = vbKeyReturn Then TxtOMM.SetFocus     '回车TxtOMM获得焦点
End Sub
Private Sub TxtOMM_KeyDown(KeyCode As Integer, Shift As Integer)
 If KeyCode = vbKeyReturn Then TxtNMM.SetFocus     '回车TxtNMM获得焦点
End Sub

Private Sub Command1_Click()     '修改操作员密码
 If TxtOMM.text = "" Then
   MsgBox "请输入原密码!", , "图书综合管理系统"
   Exit Sub
 End If
 If TxtNMM.text = "" Then
    MsgBox "请输入新密码!", , "图书综合管理系统"
    Exit Sub
 End If
 If DataCombo1.text = "" Then
    MsgBox "请输入操作员!", , "图书综合管理系统"
    Exit Sub
 End If
 Adodc1.RecordSource = "select * from qxb where 操作员='" & DataCombo1.text & "'"
 Adodc1.Refresh
 If Adodc1.Recordset.RecordCount > 0 Then
    If TxtOMM.text = Adodc1.Recordset.Fields("密码") Then
       Adodc1.Recordset.Fields("密码") = TxtNMM.text
       Adodc1.Recordset.Update
       MsgBox "密码更改成功!", , "图书综合管理系统"
     Else
       MsgBox "原密码不正确,请重新输入!", , "图书综合管理系统"
       Exit Sub
    End If
 End If
End Sub
Private Sub Command2_Click()   '取消
 frm_main.Enabled = True
 Unload Me
End Sub

⌨️ 快捷键说明

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