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

📄 form14.frm

📁 基于VB和SQL的邮件自动处理辅助教学系统原码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form14 
   Caption         =   "修改密码"
   ClientHeight    =   4935
   ClientLeft      =   60
   ClientTop       =   510
   ClientWidth     =   7350
   LinkTopic       =   "Form14"
   ScaleHeight     =   4935
   ScaleWidth      =   7350
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command3 
      Caption         =   "返回"
      Height          =   495
      Left            =   4800
      TabIndex        =   6
      Top             =   3600
      Width           =   1335
   End
   Begin VB.CommandButton Command2 
      Caption         =   "清屏"
      Height          =   495
      Left            =   2760
      TabIndex        =   5
      Top             =   3600
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H00000000&
      Caption         =   "确认"
      Height          =   495
      Left            =   960
      TabIndex        =   4
      Top             =   3600
      Width           =   1335
   End
   Begin VB.TextBox Text2 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2880
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1560
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2880
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   840
      Width           =   2535
   End
   Begin VB.Label Label2 
      Caption         =   "确认新密码"
      Height          =   375
      Left            =   600
      TabIndex        =   1
      Top             =   1680
      Width           =   1575
   End
   Begin VB.Label Label1 
      Caption         =   "请输入新密码"
      Height          =   495
      Left            =   600
      TabIndex        =   0
      Top             =   840
      Width           =   1935
   End
End
Attribute VB_Name = "Form14"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public db1 As New ADODB.Connection
Public rs1 As New ADODB.Recordset
Private Sub Command1_Click()
Dim i As Integer
If Text1.Text = Text2.Text Then
'rs1.EditMode
rs1.Fields(1) = Text2.Text
rs1.Update
i = MsgBox("密码修改成功!", , "修改密码")
Else
i = MsgBox("密码确认错误!", 5 + vbExclamation, "输入用户密码")
Text1.Text = ""
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
End Sub
Private Sub Command3_Click()
Form14.Hide
Form13.Show
End Sub
Private Sub Form_Load()
Set db1 = New ADODB.Connection
Set rs1 = New ADODB.Recordset
rs1.CursorLocation = adUseClient
db1.ConnectionString = "driver={SQL Server};server=(local);database=邮件系统;persist security info=false;user id=;"
db1.Open
rs1.Open "select * from 用户 where 用户名='" & Form12.Text1.Text & "'", db1, adOpenDynamic, adLockOptimistic
End Sub

⌨️ 快捷键说明

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