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

📄 form8.frm

📁 小区物业管理系统完整文档及代码。帮助毕业同学做好毕业设计。
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmxgmm 
   BackColor       =   &H00E0E0E0&
   Caption         =   "修改密码"
   ClientHeight    =   5055
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4935
   LinkTopic       =   "Form8"
   ScaleHeight     =   5055
   ScaleWidth      =   4935
   Begin VB.CommandButton Command2 
      Caption         =   "取 消"
      Height          =   495
      Left            =   2760
      TabIndex        =   6
      Top             =   4080
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确 定"
      Height          =   495
      Left            =   840
      TabIndex        =   5
      Top             =   4080
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00E0E0E0&
      Height          =   3135
      Left            =   600
      TabIndex        =   0
      Top             =   480
      Width           =   3615
      Begin VB.TextBox txtRNPwd 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   1440
         PasswordChar    =   "*"
         TabIndex        =   4
         Top             =   2280
         Width           =   1695
      End
      Begin VB.TextBox txtNPwd 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   1440
         PasswordChar    =   "*"
         TabIndex        =   3
         Top             =   1680
         Width           =   1695
      End
      Begin VB.TextBox txtPwd 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   1440
         PasswordChar    =   "*"
         TabIndex        =   2
         Top             =   1080
         Width           =   1695
      End
      Begin VB.TextBox txtUser 
         Height          =   375
         Left            =   1440
         TabIndex        =   1
         Top             =   480
         Width           =   1695
      End
      Begin VB.Label Label4 
         BackColor       =   &H00E0E0E0&
         Caption         =   "新密码确认:"
         Height          =   255
         Left            =   120
         TabIndex        =   10
         Top             =   2400
         Width           =   1095
      End
      Begin VB.Label Label3 
         BackColor       =   &H00E0E0E0&
         Caption         =   "新密码:"
         Height          =   255
         Left            =   240
         TabIndex        =   9
         Top             =   1800
         Width           =   975
      End
      Begin VB.Label Label2 
         BackColor       =   &H00E0E0E0&
         Caption         =   "原密码:"
         Height          =   255
         Left            =   240
         TabIndex        =   8
         Top             =   1200
         Width           =   855
      End
      Begin VB.Label Label1 
         BackColor       =   &H00E0E0E0&
         Caption         =   "用户名:"
         Height          =   255
         Left            =   240
         TabIndex        =   7
         Top             =   600
         Width           =   855
      End
   End
End
Attribute VB_Name = "frmxgmm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim xgsql As New ADODB.Recordset
Dim MsgText As String
Dim sql As String
If txtNPwd.Text <> txtRNPwd.Text Then
    MsgBox "两次输入的密码不同,请重新输入!", vbOKOnly + vbInformation, "注意"
    txtNPwd.SetFocus
    Exit Sub
End If
    sql = "select * from UserTable where userId= '" & txtUser.Text & "'and " & " userPwd= '" & txtPwd.Text & "'"
    Set xgsql = ExecuteSQL(sql, MsgText)
    If xgsql.EOF = True Then
        MsgBox "原用名或密码错误!", vbOKOnly + vbInformation, "注意"
        txtUser.Text = ""
        txtUser.SetFocus
        txtPwd.Text = ""
        xgsql.Close
        Exit Sub
    Else
        xgsql.Fields(1) = txtNPwd.Text
        xgsql.Update
        MsgBox "修改密码成功!", vbOKOnly + vbInformation, "注意"
       xgsql.Close
        Unload Me
    End If
    
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
frmxgmm.Width = 5055
frmxgmm.Height = 5460
Dim x0 As Long  '居中显示
Dim y0 As Long
x0 = Screen.Width
y0 = Screen.Height
x0 = (x0 - Me.Width) / 2
y0 = (y0 - Me.Height) / 2
Me.Move x0, y0
End Sub

⌨️ 快捷键说明

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