Doesn't anyone display the version number?

  • Thread starter Thread starter Zim Babwe
  • Start date Start date
Z

Zim Babwe

Doesn't anyone display the version and revision number in their VB.NET
application on the "about" screen or somewhere else? I need to know how to
display that information also.

Any help would be appreciated
 
Doesn't anyone display the version and revision number in their VB.NET
application on the "about" screen or somewhere else? I need to know how to
display that information also.

Any help would be appreciated

Assembly Info.
 
I'm pretty sure you can add a Splash form to the project that has this
information on it.

CM
 
Doesn't anyone display the version and revision number in their VB.NET
application on the "about" screen or somewhere else? I need to know how to
display that information also.

Any help would be appreciated


I believe the "Add item" menu has a About Form that you can to your
project that does this for you.

Thanks,

Seth Rowe
 
Can you elaborate a bit more please?

I currently have My.Application.Info.Version but it doesn't display the
correct info

Thanks
 
I do have the About Form but there is a My.Application.Info.Version variable
which doesn't relay the correct info. It leaves off the Revision number.
 
I found this code

Dim FVI As FileVersionInfo

FVI = FileVersionInfo.GetVersionInfo( _

System.Reflection.Assembly.GetExecutingAssembly.Location)

MsgBox(FVI.FileMajorPart & " - " & FVI.FileMinorPart & " - " &
FVI.FileBuildPart _

& " - " & FVI.FilePrivatePart & " - " & FVI.FileVersion)





but it gives some weird results. The FileVersion shows up as 25480 but it
should only be 45. What is going on?
 
Zim said:
Doesn't anyone display the version and revision number in their VB.NET
application on the "about" screen or somewhere else? I need to know how to
display that information also.

Any help would be appreciated
Maybe you are after this (watch for wrapping) -

Imports System.Deployment.Application

If ApplicationDeployment.IsNetworkDeployed Then
Me.Text = String.Format("Version {0}",
ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString)
Else
Me.Text = String.Format("Version {0}",
My.Application.Info.Version.ToString)
End If

Hope this helps.

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
 
Back
Top