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

📄 chpwd.frm

📁 这是一个对药品入库
💻 FRM
字号:
VERSION 5.00
Begin VB.Form chpwd 
   BackColor       =   &H00404040&
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "用户修改密码"
   ClientHeight    =   3075
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4680
   Icon            =   "chpwd.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "chpwd.frx":030A
   ScaleHeight     =   3075
   ScaleWidth      =   4680
   ShowInTaskbar   =   0   'False
   Begin VB.PictureBox Picture2 
      Height          =   1095
      Left            =   240
      Picture         =   "chpwd.frx":59F9
      ScaleHeight     =   1035
      ScaleWidth      =   4155
      TabIndex        =   8
      Top             =   1440
      Width           =   4215
      Begin VB.Label Label3 
         BackColor       =   &H00404040&
         BackStyle       =   0  'Transparent
         Caption         =   "    密码最多只能输入20个英文字符或10个汉字或20个数字,不能输入其它标点符号或怪字符。建议密码不要使用汉字。"
         ForeColor       =   &H00000000&
         Height          =   615
         Left            =   360
         TabIndex        =   9
         Top             =   240
         Width           =   3495
      End
   End
   Begin VB.PictureBox Picture1 
      Height          =   1215
      Left            =   240
      Picture         =   "chpwd.frx":7DDC
      ScaleHeight     =   1155
      ScaleWidth      =   4155
      TabIndex        =   1
      Top             =   120
      Width           =   4215
      Begin VB.TextBox Text1 
         BackColor       =   &H00FFFFFF&
         ForeColor       =   &H00000000&
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   960
         PasswordChar    =   "*"
         TabIndex        =   5
         Top             =   240
         Width           =   1095
      End
      Begin VB.TextBox Text2 
         BackColor       =   &H00FFFFFF&
         ForeColor       =   &H00000000&
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   960
         PasswordChar    =   "*"
         TabIndex        =   4
         Top             =   600
         Width           =   1095
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定&(O)"
         Height          =   300
         Left            =   3000
         TabIndex        =   3
         Top             =   240
         Width           =   1000
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取消&(C)"
         Height          =   300
         Left            =   3000
         TabIndex        =   2
         Top             =   600
         Width           =   1000
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackColor       =   &H00404040&
         BackStyle       =   0  'Transparent
         Caption         =   "旧密码:"
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   240
         TabIndex        =   7
         Top             =   285
         Width           =   630
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackColor       =   &H00404040&
         BackStyle       =   0  'Transparent
         Caption         =   "新密码:"
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   240
         TabIndex        =   6
         Top             =   645
         Width           =   630
      End
   End
   Begin VB.CommandButton Command3 
      Caption         =   "关闭&(Q)"
      Height          =   300
      Left            =   3250
      TabIndex        =   0
      Top             =   2670
      Width           =   1000
   End
End
Attribute VB_Name = "chpwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  Dim rs As ADODB.Recordset
  Set rs = Ex_Sql("select 密码 from usertab where 用户名='" & module1.name & "'")
      If Text1.Text = rs.Fields(0) Then
         Ex_Sql "update usertab set 密码='" & Text2.Text & "'"
         MsgBox "更改成功!", 0, "系统提示"
         Text1.Text = ""
         Text2.Text = ""
      Else
         MsgBox "旧密码不正确!", 0, "系统提示"
         Text2.Text = ""
      End If
End Sub

Private Sub Command2_Click()
  Text1.Text = ""
  Text2.Text = ""
End Sub

Private Sub Command3_Click()
  Unload Me
End Sub

⌨️ 快捷键说明

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