-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrmAbout.vb
More file actions
64 lines (56 loc) · 2.34 KB
/
frmAbout.vb
File metadata and controls
64 lines (56 loc) · 2.34 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
Option Strict Off
Option Explicit On
Imports System
Imports System.Windows.Forms
Partial Friend Class frmAbout
Inherits System.Windows.Forms.Form
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 Not (System.Reflection.Assembly.GetExecutingAssembly().EntryPoint Is Nothing) AndAlso 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()
ReLoadForm(False)
End Sub
Private Sub frmAbout_Activated(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Activated
If Not (UpgradeHelpers.Gui.ActivateHelper.myActiveForm Is eventSender) Then
UpgradeHelpers.Gui.ActivateHelper.myActiveForm = eventSender
End If
End Sub
' Reg Key Security Options...
Const READ_CONTROL As Integer = &H20000
Const KEY_QUERY_VALUE As Integer = &H1s
Const KEY_SET_VALUE As Integer = &H2s
Const KEY_CREATE_SUB_KEY As Integer = &H4s
Const KEY_ENUMERATE_SUB_KEYS As Integer = &H8s
Const KEY_NOTIFY As Integer = &H10s
Const KEY_CREATE_LINK As Integer = &H20s
Const KEY_ALL_ACCESS As Integer = KEY_QUERY_VALUE + KEY_SET_VALUE + KEY_CREATE_SUB_KEY + KEY_ENUMERATE_SUB_KEYS + KEY_NOTIFY + KEY_CREATE_LINK + READ_CONTROL
' Reg Key ROOT Types...
Const HKEY_LOCAL_MACHINE As Integer = &H80000002
Const ERROR_SUCCESS As Integer = 0
Const REG_SZ As Integer = 1 ' Unicode nul terminated string
Const REG_DWORD As Integer = 4 ' 32-bit number
Private Sub cmdOk_Click(ByVal eventSender As Object, ByVal eventArgs As EventArgs) Handles cmdOK.Click
Me.Close()
End Sub
'UPGRADE_WARNING: (2080) Form_Load event was upgraded to Form_Load method and has a new behavior. More Information: https://www.mobilize.net/vbtonet/ewis/ewi2080
Private Sub Form_Load()
Me.Text = "About " & My.Application.Info.Title
'lblVersion.Caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision
lblTitle.Text = My.Application.Info.Title
End Sub
Private Sub Form_Closed(ByVal eventSender As Object, ByVal eventArgs As EventArgs) Handles MyBase.Closed
End Sub
End Class