AMP wrote:
ba************@hotmail.com wrote:
Hello,
I am using VS2005 and the publish feature.
Is there any way I get the version number from within my application?
i.e. I have a splash screen and would like to display the latest
version number.
Ta in advance
Barry
Try
pvversion = "Publish Version: " &
My.Application.Deployment.CurrentVersion.ToString
Thats the job! Thanks very much.
For anyone else reading this you will also need to take into account
the following.
Will fall over during running debug mode so use the following to get
round this.
If System.Diagnostics.Debugger.IsAttached = False Then
lb_version.Text = "Version : " &
My.Application.Deployment.CurrentVersion.ToString
Else
lb_version.Text = "Debug Mode"
End If
Cheers
Barry