Im in VB2003
try this
Function VersionNumber() As String
Dim VersionNo As System.Version =
System.Reflecti on.Assembly.Get ExecutingAssemb ly().GetName(). Version
Return VersionNo.Major .ToString & "." & _
VersionNo.Minor .ToString & "." & _
VersionNo.Build .ToString & "." & _
VersionNo.Revis ion.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****@discuss ions.microsoft. comwrote in message
news:AF******** *************** ***********@mic rosoft.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.Applicati on.ProductVersi on.
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?