-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmloading.frm
77 lines (73 loc) · 2.07 KB
/
frmloading.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
Begin VB.Form frmloading
BorderStyle = 4 'Fixed ToolWindow
Caption = "Teco Multi-Search"
ClientHeight = 645
ClientLeft = 45
ClientTop = 285
ClientWidth = 2775
ClipControls = 0 'False
ControlBox = 0 'False
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 645
ScaleWidth = 2775
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 10
Left = 2400
Top = 0
End
Begin ComctlLib.ProgressBar ProgressBar1
Height = 135
Left = 120
TabIndex = 1
Top = 480
Width = 2535
_ExtentX = 4471
_ExtentY = 238
_Version = 327682
Appearance = 1
End
Begin VB.Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "INITIALIZING SEARCH ENGINES"
Height = 495
Left = 0
TabIndex = 0
Top = 120
Width = 2775
End
End
Attribute VB_Name = "frmloading"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
End Sub
Private Sub Form_Load()
'Start the Timer to control the Progress Bar
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
'Increase the % complete of progress bar
ProgressBar1.Value = ProgressBar1.Value + 5
If ProgressBar1.Value = 45 Then
'when we reach 45% then load Form1 into memory
Load Form1
End If
If ProgressBar1.Value = 100 Then
'when 100% complete, hide this form
frmloading.Visible = False
'show the main form
Form1.Visible = True
'disable this timer
Timer1.Enabled = False
End If
End Sub