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

📄 frmlog.frm

📁 一款非常适合中小学教学任务不是很繁重的管理程序
💻 FRM
字号:
VERSION 5.00
Object = "{3A6644DE-3402-11D9-9DE7-C33FAA87690A}#1.0#0"; "WinXPCEngine.ocx"
Begin VB.Form frmLog 
   BackColor       =   &H00400040&
   ClientHeight    =   2040
   ClientLeft      =   60
   ClientTop       =   60
   ClientWidth     =   4140
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   Picture         =   "frmLog.frx":0000
   ScaleHeight     =   2040
   ScaleWidth      =   4140
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox txtSecret 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00004000&
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   855
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   720
      Width           =   2490
   End
   Begin VB.CommandButton cmdCansel 
      Caption         =   "取消"
      Height          =   510
      Left            =   2250
      TabIndex        =   1
      Top             =   1395
      Width           =   1320
   End
   Begin WinXPC_Engine.WindowsXPC WindowsXPC1 
      Left            =   945
      Top             =   2520
      _ExtentX        =   6588
      _ExtentY        =   1085
      ColorScheme     =   3
      Common_Dialog   =   0   'False
   End
   Begin VB.CommandButton cmdOk 
      Caption         =   "确定"
      Height          =   510
      Left            =   585
      TabIndex        =   0
      Top             =   1395
      Width           =   1320
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "教学管理系统"
      ForeColor       =   &H00004000&
      Height          =   240
      Left            =   675
      TabIndex        =   4
      Top             =   90
      Width           =   2940
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "密码"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   405
      TabIndex        =   2
      Top             =   765
      Width           =   420
   End
End
Attribute VB_Name = "frmLog"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim strSql As String
Dim RS As ADODB.Recordset
Private Sub cmdCansel_Click()
Unload Me
End Sub
Private Sub cmdOk_Click()
'登陆
strSql = "select 密码 from 密码表 where 用户='admin'"
Set RS = dbSelect(strSql)
If Me.txtSecret.Text = RS.Fields(0) Then
    mdiMain.Show
    Unload Me
    Set RS = Nothing
Else
    Me.txtSecret.SetFocus
    MsgBox "密码错误!", vbOKOnly + vbExclamation, "提示"
End If
End Sub
Private Sub Form_Load()
Me.WindowsXPC1.InitSubClassing
End Sub

⌨️ 快捷键说明

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