Repository navigation
Expand file tree
/
Copy pathSpalsh.frm
More file actions
181 lines (176 loc) · 6.83 KB
/
Copy pathSpalsh.frm
File metadata and controls
181 lines (176 loc) · 6.83 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Splash
BorderStyle = 0 'None
ClientHeight = 4545
ClientLeft = 210
ClientTop = 1365
ClientWidth = 9000
ClipControls = 0 'False
ControlBox = 0 'False
Icon = "Spalsh.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4545
ScaleWidth = 9000
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.Timer tmrStart
Interval = 10
Left = 360
Top = 480
End
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 255
Left = 4080
TabIndex = 0
Top = 3720
Visible = 0 'False
Width = 3135
_ExtentX = 5530
_ExtentY = 450
_Version = 393216
Appearance = 0
End
Begin VB.Label lblVersion
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Version"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000B&
Height = 405
Left = 4440
TabIndex = 2
Top = 1920
Width = 885
End
Begin VB.Label lblLoad
BackStyle = 0 'Transparent
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 4080
TabIndex = 1
Top = 4200
Width = 5775
End
Begin VB.Image splash
Height = 4560
Left = 0
Picture = "Spalsh.frx":000C
Top = 0
Width = 9000
End
End
Attribute VB_Name = "Splash"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'///////////////////////////////////////////////////////Splash UI Code//////////////////////////////////////////////////////////////
Option Explicit
Public Sub Form_Load()
Dim a As String
On Error Resume Next
Open App.path & "\version.txt" For Input As #2
Input #2, a
lblVersion.Caption = a
Close #2
End Sub
'Private Sub splash_Click()
' Me.Hide
' Unload Me
' Load UI
'UI.Show
'End Sub
Private Sub tmrStart_Timer()
With ProgressBar1
If .value < 100 Then
DoEvents
.value = .value + 0.25
If .value = 10 Then
lblLoad.Caption = "Memulai Aplikasi...":
End If
If .value = 20 Then
lblLoad.Caption = "Mengecheck Database..":
If Dir(App.path & "\database.db") = "" Then
MsgBox "Maaf..." & vbCrLf & "File ''" & App.path & "\database.db''" & " Tidak ditemukan." & vbCrLf & "Program tak dapat dijalankan." & vbCrLf, 0 + vbExclamation, "Error"
End
End If
If Dir(App.path & "\databese.db") = "" Then
MsgBox "Maaf..." & vbCrLf & "File ''" & App.path & "\databese.db''" & " Tidak ditemukan." & vbCrLf & "Program tak dapat dijalankan." & vbCrLf, 0 + vbExclamation, "Error"
End
End If
End If
If .value = 25 Then
lblLoad.Caption = "Memuat Database...":
End If
If .value = 30 Then
lblLoad.Caption = "Memindai Pengaturan...":
If Dir(App.path & "\version.txt") = "" Then
MsgBox "Maaf..." & vbCrLf & "File ''" & App.path & "\version.txt''" & " Tidak ditemukan." & vbCrLf & "Program tak dapat dijalankan." & vbCrLf, 0 + vbExclamation, "Error"
End
End If
If Dir(App.path & "\startup.txt") = "" Then
MsgBox "Maaf..." & vbCrLf & "File ''" & App.path & "\startup.txt''" & " Tidak ditemukan." & vbCrLf & "Program tak dapat dijalankan." & vbCrLf, 0 + vbExclamation, "Error"
End
End If
If Dir(App.path & "\scanwith.txt") = "" Then
MsgBox "Maaf..." & vbCrLf & "File ''" & App.path & "\scanwith.txt''" & " Tidak ditemukan." & vbCrLf & "Program tak dapat dijalankan." & vbCrLf, 0 + vbExclamation, "Error"
End
End If
End If
If .value = 35 Then
lblLoad.Caption = "Memuat Pengaturan...":
End If
If .value = 40 Then
lblLoad.Caption = "Memuat File lain...":
If Dir(App.path & "\karantinafile0.jpg") = "" Then
MsgBox "Maaf..." & vbCrLf & "File ''" & App.path & "\karantinafile0.jpg''" & " Tidak ditemukan." & vbCrLf & "Program tak dapat dijalankan." & vbCrLf, 0 + vbExclamation, "Error"
End
End If
If Dir(App.path & "\karantinafile.jpg") = "" Then
MsgBox "Maaf..." & vbCrLf & "File ''" & App.path & "\karantinafile.jpg''" & " Tidak ditemukan." & vbCrLf & "Program tak dapat dijalankan." & vbCrLf, 0 + vbExclamation, "Error"
End
End If
If Dir(App.path & "\scanner.jpg") = "" Then
MsgBox "Maaf..." & vbCrLf & "File ''" & App.path & "\scanner.jpg''" & " Tidak ditemukan." & vbCrLf & "Program tak dapat dijalankan." & vbCrLf, 0 + vbExclamation, "Error"
End
End If
End If
If .value = 70 Then
lblLoad.Caption = "Hampir Selesai...":
End If
If .value = 90 Then
lblLoad.Caption = "Sedikit lagi...":
End If
If .value = 99 Then
lblLoad.Caption = "Loading Complete...."
End If
Else
.value = 100
Me.Hide
Unload Me
Load UI
UI.Show
End If
End With
End Sub