📄 frmsplash.vb
字号:
Option Strict Off
Option Explicit On
Friend Class frmSplash
Inherits System.Windows.Forms.Form
#Region "Windows 窗体设计器生成的代码"
Public Sub New()
MyBase.New()
If m_vb6FormDefInstance Is Nothing Then
If m_InitializingDefInstance Then
m_vb6FormDefInstance = Me
Else
Try
'对于启动窗体,所创建的第一个实例为默认实例。
If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
m_vb6FormDefInstance = Me
End If
Catch
End Try
End If
End If
'此调用是 Windows 窗体设计器所必需的。
InitializeComponent()
End Sub
'窗体重写处置,以清理组件列表。
Protected Overloads Overrides Sub Dispose(ByVal Disposing As Boolean)
If Disposing Then
If Not components Is Nothing Then
components.Dispose()
End If
End If
MyBase.Dispose(Disposing)
End Sub
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
Public ToolTip1 As System.Windows.Forms.ToolTip
Public WithEvents Timer1 As System.Windows.Forms.Timer
Public WithEvents lnProcess As System.Windows.Forms.Label
Public WithEvents lblDataEnv As System.Windows.Forms.Label
Public WithEvents imgLogo As System.Windows.Forms.PictureBox
Public WithEvents lblCopyright As System.Windows.Forms.Label
Public WithEvents lblCompanyName As System.Windows.Forms.Label
Public WithEvents lblWarning As System.Windows.Forms.Label
Public WithEvents lblVersion As System.Windows.Forms.Label
Public WithEvents lblPlatform As System.Windows.Forms.Label
Public WithEvents lblLicenseTo As System.Windows.Forms.Label
Public WithEvents lblProductName As System.Windows.Forms.Label
Public WithEvents FrameMain As System.Windows.Forms.GroupBox
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器来修改它。
'不要使用代码编辑器修改它。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmSplash))
Me.components = New System.ComponentModel.Container()
Me.ToolTip1 = New System.Windows.Forms.ToolTip(components)
Me.ToolTip1.Active = True
Me.FrameMain = New System.Windows.Forms.GroupBox
Me.Timer1 = New System.Windows.Forms.Timer(components)
Me.lnProcess = New System.Windows.Forms.Label
Me.lblDataEnv = New System.Windows.Forms.Label
Me.imgLogo = New System.Windows.Forms.PictureBox
Me.lblCopyright = New System.Windows.Forms.Label
Me.lblCompanyName = New System.Windows.Forms.Label
Me.lblWarning = New System.Windows.Forms.Label
Me.lblVersion = New System.Windows.Forms.Label
Me.lblPlatform = New System.Windows.Forms.Label
Me.lblLicenseTo = New System.Windows.Forms.Label
Me.lblProductName = New System.Windows.Forms.Label
Me.ControlBox = False
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.ClientSize = New System.Drawing.Size(492, 283)
Me.Location = New System.Drawing.Point(17, 94)
Me.KeyPreview = True
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.ShowInTaskbar = False
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.SystemColors.Control
Me.Enabled = True
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.HelpButton = False
Me.WindowState = System.Windows.Forms.FormWindowState.Normal
Me.Name = "frmSplash"
Me.FrameMain.Size = New System.Drawing.Size(480, 270)
Me.FrameMain.Location = New System.Drawing.Point(8, 8)
Me.FrameMain.TabIndex = 0
Me.FrameMain.BackColor = System.Drawing.SystemColors.Control
Me.FrameMain.Enabled = True
Me.FrameMain.ForeColor = System.Drawing.SystemColors.ControlText
Me.FrameMain.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.FrameMain.Visible = True
Me.FrameMain.Name = "FrameMain"
Me.Timer1.Interval = 100
Me.Timer1.Enabled = True
Me.lnProcess.BackColor = System.Drawing.Color.FromARGB(0, 0, 192)
Me.lnProcess.Visible = True
Me.lnProcess.Location = New System.Drawing.Point(168, 120)
Me.lnProcess.Width = 16
Me.lnProcess.Height = 1
Me.lnProcess.Name = "lnProcess"
Me.lblDataEnv.Text = "数据环境:Access 2000"
Me.lblDataEnv.Font = New System.Drawing.Font("Arial", 15.75!, System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblDataEnv.Size = New System.Drawing.Size(230, 24)
Me.lblDataEnv.Location = New System.Drawing.Point(168, 168)
Me.lblDataEnv.TabIndex = 8
Me.lblDataEnv.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.lblDataEnv.BackColor = System.Drawing.SystemColors.Control
Me.lblDataEnv.Enabled = True
Me.lblDataEnv.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblDataEnv.Cursor = System.Windows.Forms.Cursors.Default
Me.lblDataEnv.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblDataEnv.UseMnemonic = True
Me.lblDataEnv.Visible = True
Me.lblDataEnv.AutoSize = True
Me.lblDataEnv.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.lblDataEnv.Name = "lblDataEnv"
Me.imgLogo.Size = New System.Drawing.Size(97, 103)
Me.imgLogo.Location = New System.Drawing.Point(24, 69)
Me.imgLogo.Image = CType(resources.GetObject("imgLogo.Image"), System.Drawing.Image)
Me.imgLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
Me.imgLogo.Enabled = True
Me.imgLogo.Cursor = System.Windows.Forms.Cursors.Default
Me.imgLogo.Visible = True
Me.imgLogo.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.imgLogo.Name = "imgLogo"
Me.lblCopyright.Text = "版权所有,违者必究"
Me.lblCopyright.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblCopyright.Size = New System.Drawing.Size(161, 17)
Me.lblCopyright.Location = New System.Drawing.Point(304, 204)
Me.lblCopyright.TabIndex = 4
Me.lblCopyright.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.lblCopyright.BackColor = System.Drawing.SystemColors.Control
Me.lblCopyright.Enabled = True
Me.lblCopyright.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblCopyright.Cursor = System.Windows.Forms.Cursors.Default
Me.lblCopyright.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblCopyright.UseMnemonic = True
Me.lblCopyright.Visible = True
Me.lblCopyright.AutoSize = False
Me.lblCopyright.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.lblCopyright.Name = "lblCopyright"
Me.lblCompanyName.Text = "考试系统软件公司"
Me.lblCompanyName.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblCompanyName.Size = New System.Drawing.Size(161, 17)
Me.lblCompanyName.Location = New System.Drawing.Point(304, 224)
Me.lblCompanyName.TabIndex = 3
Me.lblCompanyName.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.lblCompanyName.BackColor = System.Drawing.SystemColors.Control
Me.lblCompanyName.Enabled = True
Me.lblCompanyName.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblCompanyName.Cursor = System.Windows.Forms.Cursors.Default
Me.lblCompanyName.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblCompanyName.UseMnemonic = True
Me.lblCompanyName.Visible = True
Me.lblCompanyName.AutoSize = False
Me.lblCompanyName.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.lblCompanyName.Name = "lblCompanyName"
Me.lblWarning.Text = "警告:本公司保留对恶意伤害本软件的行为采取进一步行动的权力"
Me.lblWarning.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblWarning.Size = New System.Drawing.Size(457, 13)
Me.lblWarning.Location = New System.Drawing.Point(8, 244)
Me.lblWarning.TabIndex = 2
Me.lblWarning.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.lblWarning.BackColor = System.Drawing.SystemColors.Control
Me.lblWarning.Enabled = True
Me.lblWarning.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblWarning.Cursor = System.Windows.Forms.Cursors.Default
Me.lblWarning.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblWarning.UseMnemonic = True
Me.lblWarning.Visible = True
Me.lblWarning.AutoSize = False
Me.lblWarning.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.lblWarning.Name = "lblWarning"
Me.lblVersion.TextAlign = System.Drawing.ContentAlignment.TopRight
Me.lblVersion.Text = "Version 1.0.0"
Me.lblVersion.Font = New System.Drawing.Font("Arial", 12!, System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblVersion.Size = New System.Drawing.Size(98, 19)
Me.lblVersion.Location = New System.Drawing.Point(312, 96)
Me.lblVersion.TabIndex = 5
Me.lblVersion.BackColor = System.Drawing.SystemColors.Control
Me.lblVersion.Enabled = True
Me.lblVersion.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblVersion.Cursor = System.Windows.Forms.Cursors.Default
Me.lblVersion.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblVersion.UseMnemonic = True
Me.lblVersion.Visible = True
Me.lblVersion.AutoSize = True
Me.lblVersion.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.lblVersion.Name = "lblVersion"
Me.lblPlatform.TextAlign = System.Drawing.ContentAlignment.TopRight
Me.lblPlatform.Text = "开发平台:Visual Basic 6.0"
Me.lblPlatform.Font = New System.Drawing.Font("Arial", 15.75!, System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblPlatform.Size = New System.Drawing.Size(273, 24)
Me.lblPlatform.Location = New System.Drawing.Point(160, 136)
Me.lblPlatform.TabIndex = 6
Me.lblPlatform.BackColor = System.Drawing.SystemColors.Control
Me.lblPlatform.Enabled = True
Me.lblPlatform.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblPlatform.Cursor = System.Windows.Forms.Cursors.Default
Me.lblPlatform.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblPlatform.UseMnemonic = True
Me.lblPlatform.Visible = True
Me.lblPlatform.AutoSize = True
Me.lblPlatform.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.lblPlatform.Name = "lblPlatform"
Me.lblLicenseTo.TextAlign = System.Drawing.ContentAlignment.TopRight
Me.lblLicenseTo.Text = "授权:"
Me.lblLicenseTo.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblLicenseTo.Size = New System.Drawing.Size(457, 17)
Me.lblLicenseTo.Location = New System.Drawing.Point(8, 16)
Me.lblLicenseTo.TabIndex = 1
Me.lblLicenseTo.BackColor = System.Drawing.SystemColors.Control
Me.lblLicenseTo.Enabled = True
Me.lblLicenseTo.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblLicenseTo.Cursor = System.Windows.Forms.Cursors.Default
Me.lblLicenseTo.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblLicenseTo.UseMnemonic = True
Me.lblLicenseTo.Visible = True
Me.lblLicenseTo.AutoSize = False
Me.lblLicenseTo.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.lblLicenseTo.Name = "lblLicenseTo"
Me.lblProductName.TextAlign = System.Drawing.ContentAlignment.TopCenter
Me.lblProductName.Text = "考试系统"
Me.lblProductName.Font = New System.Drawing.Font("方正舒体", 36!, System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.lblProductName.ForeColor = System.Drawing.Color.Red
Me.lblProductName.Size = New System.Drawing.Size(196, 51)
Me.lblProductName.Location = New System.Drawing.Point(192, 40)
Me.lblProductName.TabIndex = 7
Me.lblProductName.BackColor = System.Drawing.SystemColors.Control
Me.lblProductName.Enabled = True
Me.lblProductName.Cursor = System.Windows.Forms.Cursors.Default
Me.lblProductName.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblProductName.UseMnemonic = True
Me.lblProductName.Visible = True
Me.lblProductName.AutoSize = True
Me.lblProductName.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.lblProductName.Name = "lblProductName"
Me.Controls.Add(FrameMain)
Me.FrameMain.Controls.Add(lnProcess)
Me.FrameMain.Controls.Add(lblDataEnv)
Me.FrameMain.Controls.Add(imgLogo)
Me.FrameMain.Controls.Add(lblCopyright)
Me.FrameMain.Controls.Add(lblCompanyName)
Me.FrameMain.Controls.Add(lblWarning)
Me.FrameMain.Controls.Add(lblVersion)
Me.FrameMain.Controls.Add(lblPlatform)
Me.FrameMain.Controls.Add(lblLicenseTo)
Me.FrameMain.Controls.Add(lblProductName)
End Sub
#End Region
#Region "升级支持"
Private Shared m_vb6FormDefInstance As frmSplash
Private Shared m_InitializingDefInstance As Boolean
Public Shared Property DefInstance() As frmSplash
Get
If m_vb6FormDefInstance Is Nothing OrElse m_vb6FormDefInstance.IsDisposed Then
m_InitializingDefInstance = True
m_vb6FormDefInstance = New frmSplash()
m_InitializingDefInstance = False
End If
DefInstance = m_vb6FormDefInstance
End Get
Set
m_vb6FormDefInstance = Value
End Set
End Property
#End Region
'UPGRADE_WARNING: Frame 事件 FrameMain.Click 未升级。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2050"”
Private Sub FrameMain_Click()
Me.Close()
MDIfrmMain.DefInstance.Show()
End Sub
Private Sub Timer1_Tick(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Timer1.Tick
'UPGRADE_ISSUE: 运行时不支持 Line 属性 lnProcess.X2。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2066"”
lnProcess.X2 = lnProcess.X2 + 20
'UPGRADE_ISSUE: 运行时不支持 Line 属性 lnProcess.X1。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2066"”
'UPGRADE_ISSUE: 运行时不支持 Line 属性 lnProcess.X2。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2066"”
If (lnProcess.X2 - lnProcess.X1) > 3500 Then
Me.Close()
MDIfrmMain.DefInstance.Show()
End If
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -