473,406 Members | 2,620 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,406 software developers and data experts.

Obtaining Version Number

I want to get the assembly name of my app and version number of my app
so that I can display it in the bar displaying the name of my app.

I want it to read:

Elite Corporate Toolbox Version 1.0.0

How can I do this?

-Ivan

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
5 934
Cor
Hi Ivan,

I do it like this, but there is a better way I thought
\\\
Dim mytype As Type = GetType(Form1)
MessageBox.Show(mytype.Assembly.GetName.Version.To String())
///

I hope it works for you?

Cor
Nov 20 '05 #2
Remember to put this information in the AssemblyInfo.vb file. Then you can
retrieve it like Cor showed.

--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Cor" <no*@non.com> schreef in bericht
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Ivan,

I do it like this, but there is a better way I thought
\\\
Dim mytype As Type = GetType(Form1)
MessageBox.Show(mytype.Assembly.GetName.Version.To String())
///

I hope it works for you?

Cor

Nov 20 '05 #3
Just use the application class and insert the info into a textbox or label.

textbox1.text = application.companyname
textbox2.text = application.productname
textbox3.text = application.productversion

"Ivan Weiss" <iv*****@optonline.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I want to get the assembly name of my app and version number of my app
so that I can display it in the bar displaying the name of my app.

I want it to read:

Elite Corporate Toolbox Version 1.0.0

How can I do this?

-Ivan

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #4
* Ivan Weiss <iv*****@optonline.net> scripsit:
I want to get the assembly name of my app and version number of my app
so that I can display it in the bar displaying the name of my app.

I want it to read:

Elite Corporate Toolbox Version 1.0.0

How can I do this?


<http://groups.google.com/groups?selm=%23BPyUw8PDHA.1720%40TK2MSFTNGP11.phx. gbl>

Related:

<http://groups.google.com/groups?selm=bnhige%2410nd0e%242%40ID-208219.news.uni-berlin.de>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
Thanks, I used a modified version of this technique and it worked
perfectly. I appreciate the help!

-Ivan

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #6

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

Similar topics

11
by: middletree | last post by:
I need to capture the previous page's URL. I thought I could find a way to do it with client-side code, but I have been unable to find a way to do that, so perhaps there's an ASP solution. ...
2
by: Richard L Rosenheim | last post by:
Given an object, does anyone have any sample code for determining the version number of it's assembly? TIA, Richard Rosenheim
7
by: Privacy Advocate | last post by:
//crossposted to: comp.lang.javascript, alt.comp.lang.javascript in an effort to get factual answers from JavaScript experts// Simply put; Is it possible to obtain the real (actual) IP address of...
10
by: Al | last post by:
Hi, I am seeking to obtain the line number of an error once deployed with out inserting line numbers in the method. The IDE inserts line numbers but this function does not appear to be a...
11
by: seannakasone | last post by:
Is there a way to get the callstack level in c++? for example, take the following code: void call3() { //callstack level would be 3 } void call2() { //callstack level would be 2 call3();
4
by: Smartin | last post by:
Good Day All, I am using Oracle 7.3. Using the following table definition and sample data, how can I obtain the PayID which has the maximum PayDate for each AccountID? table Payments...
11
by: John Nagle | last post by:
The Python SSL object offers two methods from obtaining the info from an SSL certificate, "server()" and "issuer()". The actual values in the certificate are a series of name/value pairs in ASN.1...
4
by: BrighterLater | last post by:
To help users identify what version of my program they are using, I want it to have an "Identity string" available. eg "Prog: Bodgit, Version: 0.0.0, Compiled: 20061215" The version number...
4
by: =?Utf-8?B?anBzaG9ydHN0dWZm?= | last post by:
Hi, not sure if this is the right place for this but it was definitely the closest I could find. I am having trouble with the GetFileVersionInformation/VerQueryValue functions and was wondering...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
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.