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

📄 frmsplash.frm

📁 自测考试系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form splash 
   BorderStyle     =   0  'None
   Caption         =   "自测考试管理系统"
   ClientHeight    =   3720
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   5985
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   Picture         =   "frmsplash.frx":0000
   ScaleHeight     =   248
   ScaleMode       =   0  'User
   ScaleWidth      =   399
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Timer Timer1 
      Left            =   480
      Top             =   2880
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "试卷评阅"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000000&
      Height          =   255
      Index           =   2
      Left            =   3240
      TabIndex        =   3
      Top             =   2160
      Width           =   1095
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "定制试卷"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000000&
      Height          =   255
      Index           =   1
      Left            =   3240
      TabIndex        =   2
      Top             =   1740
      Width           =   1095
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "题库管理"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000000&
      Height          =   255
      Index           =   0
      Left            =   3240
      TabIndex        =   1
      Top             =   1320
      Width           =   1095
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "正在连接数据库....."
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   255
      Index           =   4
      Left            =   1920
      TabIndex        =   0
      Top             =   2880
      Width           =   2775
   End
End
Attribute VB_Name = "splash"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
Unload Me
systemlogon.Show: systemlogon.SetFocus
End Sub

Private Sub Form_GotFocus()
On Error GoTo dealerror '测试是否可以连接的SQL Sever服务器
Me.Enabled = False '测试完成之前禁止窗体相应用户操作
'创建于数据库的连接
Dim objCn As New Connection '定义并实例化连接对象
With objCn '建立连接
           .Provider = "SQLOLEDB"
           .ConnectionString = "user id=sa;data source=(local);" & _
           "initial catalog=自测考试"
           .Open
           .Close
End With
Set objCn = Nothing
Label1(4) = "已连接到数据库服务器"
Timer1.Interval = 3000
Me.Enabled = True
Exit Sub
dealerror:
MsgBox "不能正确连接到数据库,请与系统管理员联系!", vbCritical
Unload Me
End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)
Unload Me
systemlogon.Show: systemlogon.SetFocus
End Sub

Private Sub Label1_Click(Index As Integer)
Unload Me
systemlogon.Show: systemlogon.SetFocus
End Sub

Private Sub Timer1_Timer()
Unload Me
systemlogon.Show: systemlogon.SetFocus
End Sub

⌨️ 快捷键说明

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