469,647 Members | 1,684 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,647 developers. It's quick & easy.

Doesn't anyone display the version number?

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
Feb 1 '07 #1
9 7459
On Feb 1, 3:14 pm, "Zim Babwe"
<zimba...@doyoureallythinkthisisreal.comwrote:
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.

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

CM
<za***@construction-imaging.comwrote in message
news:11**********************@s48g2000cws.googlegr oups.com...
On Feb 1, 3:14 pm, "Zim Babwe"
<zimba...@doyoureallythinkthisisreal.comwrote:
>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.

Feb 1 '07 #3
On Feb 1, 3:14 pm, "Zim Babwe"
<zimba...@doyoureallythinkthisisreal.comwrote:
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

Feb 1 '07 #4
Can you elaborate a bit more please?

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

Thanks

<za***@construction-imaging.comwrote in message
news:11**********************@s48g2000cws.googlegr oups.com...
On Feb 1, 3:14 pm, "Zim Babwe"
<zimba...@doyoureallythinkthisisreal.comwrote:
>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.

Feb 1 '07 #5
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.
"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11*********************@q2g2000cwa.googlegrou ps.com...
On Feb 1, 3:14 pm, "Zim Babwe"
<zimba...@doyoureallythinkthisisreal.comwrote:
>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

Feb 1 '07 #6
I found this code

Dim FVI As FileVersionInfo

FVI = FileVersionInfo.GetVersionInfo( _

System.Reflection.Assembly.GetExecutingAssembly.Lo cation)

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 Babwe" <zi******@doyoureallythinkthisisreal.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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

Feb 1 '07 #7
Zim,
I do, I actually display a plethora of information about all the loaded
assemblies.

For details see:

http://www.tsbradley.net/Cookbook/Wi...outDialog.aspx

Note to self: looks like I need to finish the narrative on that page &
update the sample for VB 2005.

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Zim Babwe" <zi******@doyoureallythinkthisisreal.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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
Feb 2 '07 #8
System.Reflection.Assembly.GetExecutingAssembly(). GetName.Version.ToString

--
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
..NET and ASP .NET code
Feb 2 '07 #9
Zim Babwe wrote:
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.CurrentVer sion.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.
Feb 2 '07 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Anand Buddhdev | last post: by
3 posts views Thread by Geoff | last post: by
9 posts views Thread by Protoman | last post: by
7 posts views Thread by Alain \Mbuna\ | last post: by
reply views Thread by ev951 | last post: by
14 posts views Thread by Phil | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.