📄 load_frm.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "Mscomctl.ocx"
Begin VB.Form load_frm
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 3735
ClientLeft = 0
ClientTop = 0
ClientWidth = 5670
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "load_frm.frx":0000
ScaleHeight = 3735
ScaleWidth = 5670
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.PictureBox Picture1
BackColor = &H00FFFF00&
BorderStyle = 0 'None
Height = 585
Left = 840
ScaleHeight = 585
ScaleWidth = 3645
TabIndex = 2
Top = 1080
Width = 3648
Begin VB.Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "欢迎进入选课系统"
BeginProperty Font
Name = "幼圆"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 360
Left = 960
TabIndex = 3
Top = 120
Width = 1890
End
End
Begin VB.Timer Timer3
Interval = 100
Left = 3120
Top = 0
End
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 495
Left = 0
TabIndex = 0
Top = 3000
Width = 5655
_ExtentX = 9975
_ExtentY = 873
_Version = 393216
Appearance = 0
End
Begin VB.Timer Timer1
Interval = 130
Left = 480
Top = 120
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "正在连接数据库...."
Height = 180
Left = 480
TabIndex = 1
Top = 2280
Width = 1620
End
End
Attribute VB_Name = "load_frm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
load_frm.Move (Screen.Width - load_frm.Width) / 2, (Screen.Height - load_frm.Height) / 2
Timer1.Enabled = True
Timer3.Enabled = True
End Sub
Private Sub Timer1_Timer()
If Label1.Left + Label1.Width > 0 Then
Label1.Move Label1.Left - 100
Else
Label1.Left = Picture1.Width - 80
End If
End Sub
Private Sub Timer3_Timer()
ProgressBar1.Value = ProgressBar1.Value + 1
If ProgressBar1.Value = 100 Then
Unload Me
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -