📄 splash.frm
字号:
VERSION 5.00
Begin VB.Form frmSplash
Appearance = 0 'Flat
BackColor = &H00000000&
BorderStyle = 0 'None
ClientHeight = 3195
ClientLeft = 1245
ClientTop = 1440
ClientWidth = 5475
ClipControls = 0 'False
ControlBox = 0 'False
Icon = "Splash.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form2"
LockControls = -1 'True
ScaleHeight = 3195
ScaleWidth = 5475
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.Label lblProductName
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Program Title"
BeginProperty Font
Name = "Arial Black"
Size = 19.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 555
Left = 0
TabIndex = 3
Top = 960
Width = 5445
End
Begin VB.Label lblCopyright
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Copyright c (Your Company)"
ForeColor = &H00000000&
Height = 195
Left = 0
TabIndex = 2
Top = 630
Width = 5445
End
Begin VB.Label lblWarning
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "This program is protected by national and international copyright laws as described in Help About."
ForeColor = &H00000000&
Height = 390
Left = 0
TabIndex = 1
Top = 2145
Width = 5445
WordWrap = -1 'True
End
Begin VB.Label lblPlatformAndVersion
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "for Win X Version x.x"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 0
TabIndex = 0
Top = 1650
Width = 5445
End
Begin VB.Image BackgroundPicture
Height = 3165
Left = 15
Picture = "Splash.frx":000C
Stretch = -1 'True
Top = 15
Width = 5445
End
End
Attribute VB_Name = "frmSplash"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private msngSplashDisplayStartTime As Single
Public Platform As String
Private Sub Form_Activate()
On Error GoTo HandleErrors
Refresh
ExitHandleErrors:
Exit Sub
HandleErrors:
MsgBox Err.Description & " (" & Err.Number & ")", vbCritical, App.Title & " Error"
Resume ExitHandleErrors
End Sub
Private Sub Form_Load()
On Error GoTo HandleErrors
Screen.MousePointer = vbHourglass
lblPlatformAndVersion = "For " & Platform & " Version " & App.Major & "." & App.Minor & "." & App.Revision
lblProductName.Caption = App.Title
lblCopyright = "Copyright " & Chr(169) & " " & Year(Now()) & " " & "Your Company"
Caption = App.Title
BackgroundPicture.Move 15, 15, Me.ScaleWidth - 30, Me.ScaleHeight - 30
msngSplashDisplayStartTime = Timer
ExitHandleErrors:
Exit Sub
HandleErrors:
MsgBox Err.Description & " (" & Err.Number & ")", vbCritical, App.Title & " Error"
Resume ExitHandleErrors
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
On Error GoTo HandleErrors
Const cintDisplayTimeSeconds As Integer = 3
Do Until (Timer - msngSplashDisplayStartTime) > cintDisplayTimeSeconds
Loop
Screen.MousePointer = vbNormal
ExitHandleErrors:
Exit Sub
HandleErrors:
MsgBox Err.Description & " (" & Err.Number & ")", vbCritical, App.Title & " Error"
Resume ExitHandleErrors
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -