469,623 Members | 1,457 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Publish Version Info in a label

Simple question... Using Visual Studio 2005 to create a small app.
Under my project properties, publish tab, I have it auto incrementing
the revision number every time I publish. Is there any way to put a
label on my main form that displays the current revision? I'd just
like a little label that literally says "1.0.0.7" so it's easy to see
what version of the software my end user is using. Any thoughts? Let
me know. Thanks!
Dec 6 '07 #1
1 8033
igendreau wrote:
Simple question... Using Visual Studio 2005 to create a small app.
Under my project properties, publish tab, I have it auto incrementing
the revision number every time I publish. Is there any way to put a
label on my main form that displays the current revision? I'd just
like a little label that literally says "1.0.0.7" so it's easy to see
what version of the software my end user is using. Any thoughts? Let
me know. Thanks!
(Watch for wrapping!)

If System.Deployment.Application _
..ApplicationDeployment.IsNetworkDeployed Then
Label1.Text = System.Deployment.Application _
..ApplicationDeployment.CurrentDeployment.CurrentV ersion.ToString
Else
Label1.Text = My.Application.Info.Version.ToString
End If

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
Dec 6 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by kelly.pearson | last post: by
5 posts views Thread by NoNickname | last post: by
7 posts views Thread by Mike L | last post: by
4 posts views Thread by Mike L | last post: by
10 posts views Thread by WT | last post: by
5 posts views Thread by barrysmith1966 | last post: by
reply views Thread by Chris Davoli | last post: by
2 posts views Thread by GaryDean | last post: by
6 posts views Thread by Aussie Rules | 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.