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

📄 xiougai.frm

📁 带有SQL
💻 FRM
字号:
VERSION 5.00
Begin VB.Form xiougai 
   Caption         =   "修改用户密码"
   ClientHeight    =   2685
   ClientLeft      =   4560
   ClientTop       =   4215
   ClientWidth     =   4485
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MDIChild        =   -1  'True
   ScaleHeight     =   2685
   ScaleWidth      =   4485
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   2640
      TabIndex        =   4
      Top             =   1920
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Default         =   -1  'True
      Height          =   375
      Left            =   720
      TabIndex        =   3
      Top             =   1920
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Index           =   1
      Left            =   1800
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   960
      Width           =   2295
   End
   Begin VB.TextBox Text1 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Index           =   0
      Left            =   1800
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   240
      Width           =   2295
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "确认您的新密码:"
      Height          =   180
      Left            =   240
      TabIndex        =   5
      Top             =   1080
      Width           =   1440
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "请输入您的新密码:"
      Height          =   180
      Left            =   120
      TabIndex        =   0
      Top             =   360
      Width           =   1620
   End
End
Attribute VB_Name = "xiougai"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command2_Click()
    Unload Me
End Sub

Private Sub Command1_Click()
    Dim txtSQL, MsgText As String
    Dim mrc As ADODB.Recordset
    
    If Trim(Text1(0).Text) <> Trim(Text1(1).Text) Then
        MsgBox "密码输入不正确!", vbOKOnly + vbExclamation, "警告"
        Text1(1).SetFocus
        Text1(1).Text = ""
    Else
        txtSQL = "select * from user_if where user_ID = '" & username & "'"
        Set mrc = ExecuteSQL(txtSQL, MsgText)
        mrc.Fields(1) = Text1(0).Text
        mrc.Update
        mrc.Close
        MsgBox "密码修改成功!", vbOKOnly + vbExclamation, "修改密码"
        Me.Text1(0).Text = ""
        Me.Text1(1).Text = ""
        Me.Text1(0).SetFocus
            
        Me.Hide
        
    End If
        
  End Sub

Private Sub Form_Load()
   Me.Top = 0
   Me.Left = 0
   Me.Width = 4500
   Me.Height = 3000
   
End Sub

⌨️ 快捷键说明

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