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

📄 frm_sys_changeuser.frm

📁 中学教务管理系统是基于河南大学附属中学的教务管理条件所涉及
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frm_sys_changeuser 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "中学教务管理系统——V1.0(用户注销)"
   ClientHeight    =   2640
   ClientLeft      =   2100
   ClientTop       =   1695
   ClientWidth     =   4620
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   2640
   ScaleWidth      =   4620
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   405
      IMEMode         =   3  'DISABLE
      Left            =   2280
      TabIndex        =   3
      Top             =   240
      Width           =   1815
   End
   Begin VB.CommandButton Command2 
      Cancel          =   -1  'True
      Caption         =   "取  消"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   2640
      TabIndex        =   2
      Top             =   1920
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确  定"
      Default         =   -1  'True
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   360
      TabIndex        =   1
      Top             =   1920
      Width           =   1455
   End
   Begin VB.TextBox Text2 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2280
      PasswordChar    =   "*"
      TabIndex        =   0
      Top             =   1080
      Width           =   1815
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "输入用户名:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   285
      Left            =   360
      TabIndex        =   5
      Top             =   240
      Width           =   1890
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "输入密码:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   285
      Left            =   360
      TabIndex        =   4
      Top             =   1080
      Width           =   1575
   End
End
Attribute VB_Name = "frm_sys_changeuser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Set db = OpenDatabase(App.Path + "\db\teaching_manage.mdb")
Set rs = db.OpenRecordset("select * from users_info where id='" & Text1.Text & "'")
If rs.EOF Or rs.BOF Then
   MsgBox "没有此用户,请检查是否输入正确!", 0 + 64 + 0 + 0, "系统提示信息"
   rs.Close
   Text1.SetFocus
   Text1.Text = ""
   Text2.Text = ""
Else
   Set rs = db.OpenRecordset("select * from users_info where id='" & Text1.Text & "'and password='" & Text2.Text & "'")
   If rs.EOF Or rs.BOF Then
      MsgBox "用户密码错误,请检查是否输入正确!", 0 + 64 + 0 + 0, "系统提示信息"
      rs.Close
      Text2.Text = ""
      Text2.SetFocus
   Else
     frm_main.Toolbar1.Enabled = True
     frm_main.menu_sys.Enabled = True
     Call Menuuse
     Userid = Text1.Text
     db.Close
     Unload Me
   End If
End If
End Sub

Private Sub Command2_Click()
Unload Me
Call Menuuse
End Sub

Private Sub Form_Activate()
Text1.SetFocus
End Sub

Private Sub Form_Load()
frm_main.menu_sys.Enabled = False
frm_main.Toolbar1.Enabled = False
Call Menuunuse
Me.Picture = LoadPicture(App.Path + "\pictures\flower.jpg")
End Sub

Private Sub Form_Unload(Cancel As Integer)
frm_main.Toolbar1.Enabled = True
frm_main.menu_sys.Enabled = True
Call Menuuse
End Sub

⌨️ 快捷键说明

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