Doesn't anyone display the version number?

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
 
Z

zacks

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.
 
C

Charles May

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

CM
 
R

rowe_newsgroups

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
 
Z

Zim Babwe

Can you elaborate a bit more please?

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

Thanks
 
Z

Zim Babwe

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.
 
Z

Zim Babwe

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?
 
S

ShaneO

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top