EliCat
Newcomer
I'm starting to go bonkers here so anyone that can help this relative newbie please do so.
I'm working on a splash screen for our application and while loading it I want to show:
- company name
- application name
- application version
I know I can use AssemblyInfo.vb for this but I have no idea how.
The application consists of a couple of projects and the AssemblyInfo.vb file is located in project that loads first.
In this project are also my Main.vb and frmSplash.vb
What I had in my frmSplash.vb is:
After this how do I access any of the items in the standard AssemblyInfo.vb file?
Seeing as I couldn't get this to work I've also tried a different way .. now at least I can get the application version, but neither the companyname nor the application name since neither is associated with my *.exe file.
My alternative splash coding is as follows:
If I go this road how can I associate the company name & application name with my executable?
P.S. I've browsed through this forum extensively and read everything I found about loading the assembly etc, but still don't understand one bit how to apply it, so have some patience if I ask silly questions.
I'm working on a splash screen for our application and while loading it I want to show:
- company name
- application name
- application version
I know I can use AssemblyInfo.vb for this but I have no idea how.
The application consists of a couple of projects and the AssemblyInfo.vb file is located in project that loads first.
In this project are also my Main.vb and frmSplash.vb
What I had in my frmSplash.vb is:
Code:
Imports System.Reflection
Public Class frmSplash
Inherits System.Windows.Forms.Form
Public Sub SetStatus(ByVal sMessage As String)
Dim test as [Assembly]
test.LoadWithPartialName("AssemblyInfo")
End Sub
....... (form stuff)
End Class
After this how do I access any of the items in the standard AssemblyInfo.vb file?
Seeing as I couldn't get this to work I've also tried a different way .. now at least I can get the application version, but neither the companyname nor the application name since neither is associated with my *.exe file.
My alternative splash coding is as follows:
Code:
Public Class frmSplash
Inherits System.Windows.Forms.Form
Public Sub SetStatus(ByVal sMessage As String)
Dim UtilisInfo As FileVersionInfo = FileVersionInfo.GetVersionInfo(Application.ExecutablePath)
Me.lblUtilis.Text = "Versie " & UtilisInfo.FileMajorPart & "." & UtilisInfo.FileMinorPart _
& " Build " & UtilisInfo.FileBuildPart
End Sub
........ (form stuff)
End Class
If I go this road how can I associate the company name & application name with my executable?
P.S. I've browsed through this forum extensively and read everything I found about loading the assembly etc, but still don't understand one bit how to apply it, so have some patience if I ask silly questions.