473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

App.Major, App.Minor, App.Revision in .Net

In vb 6 objects you could build a .Version method that returned the version
of your object using the App.Major & "." & app.Minor & "." & App.Revision
method.

How do you do this in .Net?

Thanks
David
Nov 20 '05 #1
6 13610
Application.ProductVersion contains the full version as defined by
AssemblyInfo.vb
"W1ld0ne [MCSD]" <W1*******@hotmail.com> wrote in message
news:eu**************@TK2MSFTNGP10.phx.gbl...
In vb 6 objects you could build a .Version method that returned the version of your object using the App.Major & "." & app.Minor & "." & App.Revision
method.

How do you do this in .Net?

Thanks
David

Nov 20 '05 #2
"W1ld0ne [MCSD]" <W1*******@hotmail.com> schrieb
In vb 6 objects you could build a .Version method that returned the
version of your object using the App.Major & "." & app.Minor & "." &
App.Revision method.

How do you do this in .Net?


<F1>
Visual Studio.NET
Visual Basic and Visual C#
Upgrading applications
Upgrading from VB 6.0
Introduction in vB.Net for experienced VB users
Changes in Forms in VB.NET
Changes in Controls in VB.NET
Changes in the App object

(see hints in signature)
--
Armin

- The tree representing the table of contents has been translated from
localized (German) version. Excuse slight deviations.

Nov 20 '05 #3
Hello,

"W1ld0ne [MCSD]" <W1*******@hotmail.com> schrieb:
In vb 6 objects you could build a .Version method that returned
the version of your object using the App.Major & "." & app.Minor
& "." & App.Revision method.


See implementation of the about dialog in this download:

http://www.microsoft.com/downloads/d...displaylang=en

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4
Thomas, thanks dude, this works great in Windows Applications, but not in
Class modules....

Anyone have any clues?

Thanks
David
"Thomas" <no****@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Application.ProductVersion contains the full version as defined by
AssemblyInfo.vb
"W1ld0ne [MCSD]" <W1*******@hotmail.com> wrote in message
news:eu**************@TK2MSFTNGP10.phx.gbl...
In vb 6 objects you could build a .Version method that returned the

version
of your object using the App.Major & "." & app.Minor & "." & App.Revision method.

How do you do this in .Net?

Thanks
David


Nov 20 '05 #5
Found the answer thanks to Armin:

Public ReadOnly Property Version() As String

Get

Return
(System.Diagnostics.FileVersionInfo.GetVersionInfo (System.Reflection.Assembl
y.GetExecutingAssembly.Location).FileVersion)

End Get

End Property

"Armin Zingler" <az*******@freenet.de> wrote in message
news:uI**************@tk2msftngp13.phx.gbl...
"W1ld0ne [MCSD]" <W1*******@hotmail.com> schrieb
In vb 6 objects you could build a .Version method that returned the
version of your object using the App.Major & "." & app.Minor & "." &
App.Revision method.

How do you do this in .Net?


<F1>
Visual Studio.NET
Visual Basic and Visual C#
Upgrading applications
Upgrading from VB 6.0
Introduction in vB.Net for experienced VB users
Changes in Forms in VB.NET
Changes in Controls in VB.NET
Changes in the App object

(see hints in signature)
--
Armin

- The tree representing the table of contents has been translated from
localized (German) version. Excuse slight deviations.

Nov 20 '05 #6
"W1ld0ne [MCSD]" <W1*******@hotmail.com> schrieb
Thomas, thanks dude, this works great in Windows Applications, but
not in Class modules....


What if the class module is in a Windows applicaton? ;-)
--
Armin

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Frank V. | last post by:
Hello, I'm new to VB.net, moving from VB6 to VB.net. My question is "In VB.net what is the equivalent of the App.major (and others) VB6 property. I, like a lot of people I imaging, display the...
1
by: Alain Tesio | last post by:
Hi, I can't manage to get the major or minor device numbers with os.stat : ~ $ll /dev/xda7 /dev/xda8 brw-rw---- 1 root disk 13, 7 Nov 30 2000 /dev/xda7 brw-rw---- 1 root ...
1
by: John Doe | last post by:
Does anyone understand what a 'raw device number' is with respect os.major() and os.minor() Found in os-file-dir.html, section 6.1.4, os.major() description is: major(device) Extracts a...
0
by: Oliver Elphick | last post by:
The attached proposal is written primarily for Debian. Its motivation is that the current package upgrade process is pretty flaky and also that the current packaging does not really provide for...
4
by: Burghew | last post by:
Hi All, I have 2 fields called document & Revision which contains the titles for the documents to be stored in the databse it gets filled up as the user enters them and the revison numbers...
4
by: johnk | last post by:
I have a table of items, with revision numbers. I need to extract the items with highest revision number. The items may be listed several times and I don't know what the highest revision number...
1
by: theWizard1 | last post by:
Using Asp.NET 2.0. I published my web application to the server using the publish to website feature of asp.net 2.0. In VS.Net 2005 IDE, on solution explorer, at top level just below solution, I...
5
by: Frankie | last post by:
I understand that .NET Framework 3.5 is currently in Beta-2, with initial TRM expected sometime near the end of this year, with the big-time launch in February. Question: Are there major changes...
2
by: Birky | last post by:
Can someone point me in the right direction on how to use Version Numbers within Access? I have a database were its primary goal is to track the versions of several projects. Since the version...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.