Im in VB2003
try this
Function VersionNumber() As String
Dim VersionNo As System.Version =
System.Reflection.Assembly.GetExecutingAssembly(). GetName().Version
Return VersionNo.Major.ToString & "." & _
VersionNo.Minor.ToString & "." & _
VersionNo.Build.ToString & "." & _
VersionNo.Revision.ToString
End Function
' if you double click on the code of the AssemlbyInfo.vb you should see a
line on the bottom that looks similar to this;
<Assembly: AssemblyVersion("1.00.0.0")>
Is that the version you are looking for?
Miro
"Lyners" <Ly****@discussions.microsoft.comwrote in message
news:AF**********************************@microsof t.com...
No, I don't think that is what I am looking for. What I wanted was the
Version that a developer can set when a setup package is created (i.e.
1.0.0
or 1.0.1). These version numbers seem to be some kind of internal version
number by file.
"Michael" wrote:
>>
With the assumption that this is a Windows Form application....Take a
look
at System.Windows.Forms.Application.ProductVersion.
Michael
"Lyners" wrote:
I have a VB.NET application that is deployed to an end user. I would
like to
display on screen the application version of the application so that I
know
the end user id using the latest version of our software.
How do you access the property of the application version?