473,790 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7644
On Feb 1, 3:14 pm, "Zim Babwe"
<zimba...@doyou reallythinkthis isreal.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***@construc tion-imaging.comwrot e in message
news:11******** **************@ s48g2000cws.goo glegroups.com.. .
On Feb 1, 3:14 pm, "Zim Babwe"
<zimba...@doyou reallythinkthis isreal.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...@doyou reallythinkthis isreal.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***@construc tion-imaging.comwrot e in message
news:11******** **************@ s48g2000cws.goo glegroups.com.. .
On Feb 1, 3:14 pm, "Zim Babwe"
<zimba...@doyou reallythinkthis isreal.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_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** *************@q 2g2000cwa.googl egroups.com...
On Feb 1, 3:14 pm, "Zim Babwe"
<zimba...@doyou reallythinkthis isreal.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.Reflecti on.Assembly.Get ExecutingAssemb ly.Location)

MsgBox(FVI.File MajorPart & " - " & FVI.FileMinorPa rt & " - " &
FVI.FileBuildPa rt _

& " - " & FVI.FilePrivate Part & " - " & 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******@doyou reallythinkthis isreal.comwrote in message
news:%2******** ********@TK2MSF TNGP05.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******@doyou reallythinkthis isreal.comwrote in message
news:%2******** ********@TK2MSF TNGP05.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.Reflecti on.Assembly.Get ExecutingAssemb ly().GetName.Ve rsion.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.Deployme nt.Application

If ApplicationDepl oyment.IsNetwor kDeployed Then
Me.Text = String.Format(" Version {0}",
ApplicationDepl oyment.CurrentD eployment.Curre ntVersion.ToStr ing)
Else
Me.Text = String.Format(" Version {0}",
My.Application. Info.Version.To String)
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
1812
by: Anand Buddhdev | last post by:
Hi everyone, I'm a C newbie, so please be gentle. I have a program that defines the following things: typedef union { unsigned int I; unsigned char b; } dword;
1
6629
by: Tom | last post by:
I have two version numbers - one for my application and another from a manifest, database, whatever - that isn't important. Now that I have these two version numbers (in the form major.minor.build.revision) I want to compare one to see if it is less than the other. Is there any calculation I can do to convert a version number to a 'real' number so that I can compare it easily? I've fiddled around with various methods but nothing works...
3
1013
by: Geoff | last post by:
Hi Can anybody help me with the following problem? I have a vb.net application which has a setup project. In the setup I can specify the version number of the application. I would like to display this version number in the splash screen of the main application. Is there a way to do this? Geoff
9
1551
by: Protoman | last post by:
Why doesn't this display the string? string decrypt(const string& ciphertext,const string& key) { string decrypted; decrypted.resize(ciphertext.size()); // allocates the string for the correct size. string::iterator itEnc=decrypted.begin(),itEnd=decrypted.end(); string::const_iterator itSource=ciphertext.begin(); string::const_iterator itKey=key.begin(),itKeyEnd=key.end();
7
3386
by: Alain \Mbuna\ | last post by:
Hi everybody. Does anyone know what code I should use to check for the version number of Excel, installed on a computer? Thanks. Alain.
0
1924
by: ev951 | last post by:
I am not that familiar with XML or XSL and I am trying to sort application version number strings in an XML file that my team uses for application installations on our Linux servers. I have tried the xsl:data-type=number, but that doesn't work. The output of the XML file is exactly what the XML file has and I would like to sort it by the number value. Below is the some of the output from the XML file. <?xml version="1.0"?>...
3
1911
by: Zim Babwe | last post by:
I have been making changes to my Windows Application and in the Project/Properties the Publish Version shows the following: Major: 1 Minor: 0 Build: 0 Revision: 45 I would like to show this information in the "About Screen" and I have: My.Application.Info.Version
0
3968
by: sudhaoncyberworld | last post by:
Dear Techies, I do have small issue on connecting oracle server from .net This is the code snippet public string strConString = "Driver={Microsoft ODBC for Oracle};Server=myserver;Uid=system;Pwd=mypwd;";
14
2270
by: Phil | last post by:
I have been using this code to display the version number, and this has worked well, but I am now changing from using the ClickOnce publishing to a proper setup project, and this no longer works. If System.Diagnostics.Debugger.IsAttached = False Then Version.Text = "Version : " & My.Application.Deployment.CurrentVersion.ToString() Else Version.Text = "Debug Mode" End If
0
9666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10413
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9986
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5422
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.