-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathfrmAbout.vb
60 lines (48 loc) · 2.49 KB
/
frmAbout.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
Public NotInheritable Class frmAbout
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
Private Sub frmAbout_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Set the title of the form.
Dim ApplicationTitle As String
If My.Application.Info.Title <> "" Then
ApplicationTitle = My.Application.Info.Title
Else
ApplicationTitle = IO.Path.GetFileNameWithoutExtension(My.Application.Info.AssemblyName)
End If
Me.Text = String.Format("About {0}", ApplicationTitle)
' Initialize all of the text displayed on the About Box.
' TODO: Customize the application's assembly information in the "Application" pane of the project
' properties dialog (under the "Project" menu).
Me.LabelProductName.Text = My.Application.Info.ProductName
Me.LabelVersion.Text = String.Format("Version {0}", My.Application.Info.Version.ToString)
Me.LabelCopyright.Text = My.Application.Info.Copyright
Me.LabelCompanyName.Text = "Created by: Zifrian"
Me.TextBoxDescription.Text = My.Application.Info.Description
End Sub
Private Sub OKButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKButton.Click
Me.Close()
End Sub
Private Sub pbPaypal_Click(sender As Object, e As EventArgs) Handles pbPaypal.Click
' Take them to the donation page
Call Process.Start("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HSZKRQYTX5HR6&source=url")
End Sub
Private Sub pbPaypal_MouseEnter(sender As Object, e As EventArgs) Handles pbPaypal.MouseEnter
Me.Cursor = Cursors.Hand
End Sub
Private Sub pbPaypal_MouseLeave(sender As Object, e As EventArgs) Handles pbPaypal.MouseLeave
Me.Cursor = Cursors.Default
End Sub
Private Sub pbPatreon_Click(sender As Object, e As EventArgs) Handles pbPatreon.Click
' Take them to the donation page
Call Process.Start("https://www.patreon.com/user?u=51064427&fan_landing=true")
End Sub
Private Sub pbPatreon_MouseEnter(sender As Object, e As EventArgs) Handles pbPatreon.MouseEnter
Me.Cursor = Cursors.Hand
End Sub
Private Sub pbPatreon_MouseLeave(sender As Object, e As EventArgs) Handles pbPatreon.MouseLeave
Me.Cursor = Cursors.Default
End Sub
End Class