This repository has been archived by the owner on Feb 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmSplash.vb
213 lines (209 loc) · 10.1 KB
/
frmSplash.vb
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
Option Strict Off
Option Explicit On
Friend Class frmSplash
Inherits System.Windows.Forms.Form
#Region "Windows Form Designer generated code "
Public Sub New()
MyBase.New()
If m_vb6FormDefInstance Is Nothing Then
If m_InitializingDefInstance Then
m_vb6FormDefInstance = Me
Else
Try
'For the start-up form, the first instance created is the default instance.
If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
m_vb6FormDefInstance = Me
End If
Catch
End Try
End If
End If
'This call is required by the Windows Form Designer.
InitializeComponent()
End Sub
'Form overrides dispose to clean up the component list.
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
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
Public ToolTip1 As System.Windows.Forms.ToolTip
Public WithEvents lblProductName As System.Windows.Forms.Label
Public WithEvents Image1 As System.Windows.Forms.PictureBox
Public WithEvents lblComment As System.Windows.Forms.Label
Public WithEvents lblVersion As System.Windows.Forms.Label
Public WithEvents lblCompany As System.Windows.Forms.Label
Public WithEvents Frame1 As System.Windows.Forms.GroupBox
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmSplash))
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
Me.Frame1 = New System.Windows.Forms.GroupBox()
Me.lblProductName = New System.Windows.Forms.Label()
Me.Image1 = New System.Windows.Forms.PictureBox()
Me.lblComment = New System.Windows.Forms.Label()
Me.lblVersion = New System.Windows.Forms.Label()
Me.lblCompany = New System.Windows.Forms.Label()
Me.Frame1.SuspendLayout()
CType(Me.Image1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Frame1
'
Me.Frame1.BackColor = System.Drawing.SystemColors.Control
Me.Frame1.Controls.Add(Me.lblProductName)
Me.Frame1.Controls.Add(Me.Image1)
Me.Frame1.Controls.Add(Me.lblComment)
Me.Frame1.Controls.Add(Me.lblVersion)
Me.Frame1.Controls.Add(Me.lblCompany)
Me.Frame1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Frame1.ForeColor = System.Drawing.SystemColors.ControlText
Me.Frame1.Location = New System.Drawing.Point(16, -2)
Me.Frame1.Name = "Frame1"
Me.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Frame1.Size = New System.Drawing.Size(444, 278)
Me.Frame1.TabIndex = 0
Me.Frame1.TabStop = False
'
'lblProductName
'
Me.lblProductName.BackColor = System.Drawing.SystemColors.Control
Me.lblProductName.Cursor = System.Windows.Forms.Cursors.Default
Me.lblProductName.Font = New System.Drawing.Font("Verdana", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblProductName.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblProductName.Location = New System.Drawing.Point(48, 168)
Me.lblProductName.Name = "lblProductName"
Me.lblProductName.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblProductName.Size = New System.Drawing.Size(345, 21)
Me.lblProductName.TabIndex = 4
Me.lblProductName.Text = "Product Name"
'
'Image1
'
Me.Image1.Cursor = System.Windows.Forms.Cursors.Default
Me.Image1.Image = CType(resources.GetObject("Image1.Image"), System.Drawing.Image)
Me.Image1.Location = New System.Drawing.Point(48, 63)
Me.Image1.Name = "Image1"
Me.Image1.Size = New System.Drawing.Size(188, 86)
Me.Image1.TabIndex = 5
Me.Image1.TabStop = False
'
'lblComment
'
Me.lblComment.BackColor = System.Drawing.SystemColors.Control
Me.lblComment.Cursor = System.Windows.Forms.Cursors.Default
Me.lblComment.Font = New System.Drawing.Font("Verdana", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblComment.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblComment.Location = New System.Drawing.Point(48, 200)
Me.lblComment.Name = "lblComment"
Me.lblComment.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblComment.Size = New System.Drawing.Size(366, 21)
Me.lblComment.TabIndex = 3
Me.lblComment.Text = "Comment"
'
'lblVersion
'
Me.lblVersion.AutoSize = True
Me.lblVersion.BackColor = System.Drawing.SystemColors.Control
Me.lblVersion.Cursor = System.Windows.Forms.Cursors.Default
Me.lblVersion.Font = New System.Drawing.Font("Verdana", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblVersion.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblVersion.Location = New System.Drawing.Point(48, 232)
Me.lblVersion.Name = "lblVersion"
Me.lblVersion.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblVersion.Size = New System.Drawing.Size(74, 18)
Me.lblVersion.TabIndex = 1
Me.lblVersion.Text = "Version"
'
'lblCompany
'
Me.lblCompany.AutoSize = True
Me.lblCompany.BackColor = System.Drawing.SystemColors.Control
Me.lblCompany.Cursor = System.Windows.Forms.Cursors.Default
Me.lblCompany.Font = New System.Drawing.Font("Verdana", 18.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblCompany.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblCompany.Location = New System.Drawing.Point(48, 16)
Me.lblCompany.Name = "lblCompany"
Me.lblCompany.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblCompany.Size = New System.Drawing.Size(292, 29)
Me.lblCompany.TabIndex = 2
Me.lblCompany.Text = "Agilent Technologies"
'
'frmSplash
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.SystemColors.Control
Me.ClientSize = New System.Drawing.Size(471, 294)
Me.ControlBox = False
Me.Controls.Add(Me.Frame1)
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.KeyPreview = True
Me.Location = New System.Drawing.Point(121, 152)
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "frmSplash"
Me.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.ShowInTaskbar = False
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "TestExec SL"
Me.Frame1.ResumeLayout(False)
Me.Frame1.PerformLayout()
CType(Me.Image1, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
End Sub
#End Region
#Region "Upgrade Support "
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
'*****************************************************************************
'frmSplash.frm
'frmSplash.frx
'
'The frmSplash.frm form is provided to indicate to the user
'that something is happening as the OpUI application
'is being loaded. The TxSL icon image on this form should be
'replace by one more appropriate for your application.
'*****************************************************************************
Private LocalSource As String
'***************************************************************************
Private Sub frmSplash_KeyPress(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
Dim KeyAscii As Short = Asc(eventArgs.KeyChar)
Me.Close()
If KeyAscii = 0 Then
eventArgs.Handled = True
End If
End Sub
'***************************************************************************
Private Sub frmSplash_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
'lblVersion.Text = "Version " & CStr(System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileMajorPart) & "." & CStr(System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileMinorPart) & "." & CStr(App.Revision) 'NoLocalize
lblVersion.Text = "Version " & System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileVersion
lblProductName.Text = System.Reflection.Assembly.GetExecutingAssembly.GetName.Name
lblCompany.Text = System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).CompanyName
lblComment.Text = System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).Comments
Cursor = System.Windows.Forms.Cursors.WaitCursor
End Sub
End Class