Obtaining Version Number

  • Thread starter Thread starter Ivan Weiss
  • Start date Start date
I

Ivan Weiss

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
 
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.ToString())
///

I hope it works for you?

Cor
 
Remember to put this information in the AssemblyInfo.vb file. Then you can
retrieve it like Cor showed.
 
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
 
Thanks, I used a modified version of this technique and it worked
perfectly. I appreciate the help!

-Ivan
 
Back
Top