Thank you Ged I have incorporated your solution.
//Eagleman
: Hi
: Here's the code I would use:
:
: Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
: ' Declare a variable for Sys Reflection Assy
: Dim sra As System.Reflection.Assembly
: ' Dec for the Copyright Attribute
: Dim copyrtAttr As System.Reflection.AssemblyCopyrightAttribute
: ' Get the current executing Assembly
: sra = System.Reflection.Assembly.GetExecutingAssembly
: ' Get the Copyright Attribute via Sys Refl Assy
: copyrtAttr = sra.GetCustomAttributes(GetType(System.Reflection.AssemblyCopyrightAttribute), False)(0)
: ' Display it
: Label1.Text = "CopyRight: " & copyrtAttr.Copyright
: End Sub
:
: Cheers
: Ged
:
: =========================================================
:
: : Great Ged thank you under Application I also found Application.ProductName that was usable for me but is there a way to find the copyright info in a similar way?
: :
: : //Eagleman
: :
: :
: : : This info is available direct from the Application namespace. So, eg, to display current version no in a messagebox:
: : :
: : : MessageBox.Show(Application.ProductVersion)
: : :
: : : All the information that is stored in the AssemblyInfo.vb is available - but some of it isn't quite so easy to get at, though.
: : : Let me know if you want more.
: : :
: : : ================================================================
: : :
: : :
: : : :
: : : : Does anyone know how to retrieve the version for a program in code when the same program is running? I would like to put the programs version in the form.name property
: : : :
: : : : //Eagleman
: : : :
: : : :
: : :
: : :
: :
: :
:
: