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

📄 form7.frm

📁 MIS系统开发实例(VB+SQL SERVER2000)
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form7 
   BackColor       =   &H00FFC0C0&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "密码修改"
   ClientHeight    =   3075
   ClientLeft      =   45
   ClientTop       =   450
   ClientWidth     =   3615
   LinkTopic       =   "Form7"
   MaxButton       =   0   'False
   ScaleHeight     =   3075
   ScaleWidth      =   3615
   StartUpPosition =   3  '窗口缺省
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   1560
      Style           =   2  'Dropdown List
      TabIndex        =   8
      Top             =   840
      Width           =   1575
   End
   Begin VB.CommandButton Command2 
      BackColor       =   &H00C0FFFF&
      Caption         =   "取消"
      Height          =   375
      Left            =   2400
      Style           =   1  'Graphical
      TabIndex        =   7
      Top             =   2520
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H00C0FFFF&
      Caption         =   "确定"
      Height          =   375
      Left            =   1560
      Style           =   1  'Graphical
      TabIndex        =   6
      Top             =   2520
      Width           =   855
   End
   Begin VB.TextBox Text3 
      Appearance      =   0  'Flat
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   1560
      PasswordChar    =   "*"
      TabIndex        =   5
      Top             =   2040
      Width           =   1575
   End
   Begin VB.TextBox Text2 
      Appearance      =   0  'Flat
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   1560
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1440
      Width           =   1575
   End
   Begin VB.Image Image1 
      Height          =   360
      Left            =   240
      Picture         =   "Form7.frx":0000
      Stretch         =   -1  'True
      Top             =   240
      Width           =   360
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "修改密码"
      Height          =   255
      Left            =   600
      TabIndex        =   4
      Top             =   2040
      Width           =   1095
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "原始密码"
      Height          =   255
      Left            =   600
      TabIndex        =   2
      Top             =   1440
      Width           =   1095
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "用户名"
      Height          =   255
      Left            =   600
      TabIndex        =   1
      Top             =   840
      Width           =   1095
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "修改密码"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   720
      TabIndex        =   0
      Top             =   240
      Width           =   1695
   End
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text2 = "" Then
    MsgBox "请输入原始密码", vbOKOnly + vbInformation, "提示"
    Text2.SetFocus
    Exit Sub
End If
If Text2 = "" Then
    MsgBox "请输入新密码", vbOKOnly + vbInformation, "提示"
    Text2.SetFocus
    Exit Sub
End If
Call adoopen
sql = "select * from xiaoshouman where xiaono='" & Combo1.Text & "'and xiaopw='" & Text2 & "'"
Call rs(sql)
If Not adors.EOF Then
    adors.Fields("xiaopw") = Text3
    adors.Update
    Call adoclose
    MsgBox "修改成功!", vbOKOnly + vbInformation, "提示"
    Unload Me
Else
    MsgBox "密码输入有误,请重新输入!", vbOKOnly + vbInformation, "提示"
    Call adoclose
    Text2 = ""
    Text2.SetFocus
End If
End Sub

Private Sub Command2_Click()
  Unload Me
End Sub

Private Sub Form_Load()
  Move MDIForm1.Left + (MDIForm1.Width - Me.Width) / 2, MDIForm1.Top + 3000
  sql = "select xiaono from xiaoshouman"
  Call comadd(sql, "xiaono", Combo1)
End Sub

⌨️ 快捷键说明

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