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

📄 密码修改.frm

📁 vb学生信息管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form4 
   Caption         =   "密码修改"
   ClientHeight    =   2865
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3240
   LinkTopic       =   "Form4"
   ScaleHeight     =   2865
   ScaleWidth      =   3240
   StartUpPosition =   3  '窗口缺省
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   1560
      Top             =   2400
      Visible         =   0   'False
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Password=315613;Persist Security Info=True;User ID=sa;Initial Catalog=wt;Data Source=wt"
      OLEDBString     =   "Provider=SQLOLEDB.1;Password=315613;Persist Security Info=True;User ID=sa;Initial Catalog=wt;Data Source=wt"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "登陆"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.TextBox Text3 
      DataField       =   "登陆密码"
      DataSource      =   "Adodc1"
      Height          =   270
      Left            =   360
      TabIndex        =   7
      Top             =   2400
      Visible         =   0   'False
      Width           =   855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   255
      Left            =   1680
      TabIndex        =   6
      Top             =   2040
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   255
      Left            =   360
      TabIndex        =   5
      Top             =   2040
      Width           =   975
   End
   Begin VB.Frame Frame1 
      Caption         =   "密码修改"
      Height          =   1335
      Left            =   120
      TabIndex        =   0
      Top             =   600
      Width           =   2895
      Begin VB.TextBox Text2 
         Height          =   270
         Left            =   1200
         TabIndex        =   4
         Top             =   840
         Width           =   1455
      End
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   1200
         TabIndex        =   3
         Top             =   240
         Width           =   1455
      End
      Begin VB.Label Label2 
         Caption         =   "登陆密码"
         Height          =   255
         Left            =   120
         TabIndex        =   2
         Top             =   840
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "登陆名"
         Height          =   255
         Left            =   120
         TabIndex        =   1
         Top             =   360
         Width           =   735
      End
   End
   Begin VB.Label Label3 
      Caption         =   "请输入原来的用户名和密码"
      Height          =   255
      Left            =   480
      TabIndex        =   8
      Top             =   120
      Width           =   2295
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim m As Integer
Private Sub Command1_Click()
Adodc1.CommandType = adCmdText
Dim sql As String
Dim str1 As String
Dim str2 As String
Dim n As Integer
Dim j As Integer
j = 0
str2 = Text2.Text
sql = "select * from 登陆 where 登陆名='" + Text1.Text + "'"
Adodc1.RecordSource = sql
Adodc1.Refresh
str1 = Text3.Text
n = Len(str2)
For i = 1 To n
If Mid(str1, i, 1) = Mid(str2, i, 1) Then
j = j + 1
End If
Next i
If j = n And Len(Trim(str1)) = Len(Trim(str2)) And Text2.Text <> "" Then
   Form7.Show
   Unload Me
Else
  m = m + 1
   Command1.Enabled = False
     If m = 3 Then
        MsgBox "你是非法用户,不能修改密码!", vbExclamation, "提示信息"
        End
     End If
   MsgBox "您的输入有误请重试!", 39, "提示信息"
   Text1.Text = ""
   Text2.Text = ""
   Text1.SetFocus
   Command1.Enabled = False
End If
End Sub

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

Private Sub Form_Load()
Label3.FontBold = True
End Sub

Private Sub Text1_Change()
Command1.Enabled = True
Command2.Enabled = True
End Sub

⌨️ 快捷键说明

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