Results 1 to 2 of 2

Thread: Retrieving application properties

  1. #1

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519

    Retrieving application properties

    How do I get the folowing values in code:

    <Assembly: AssemblyTitle("TEST")>
    <Assembly: AssemblyDescription("TestProgram")>
    <Assembly: AssemblyCompany("ACME")>
    <Assembly: AssemblyProduct("Test")>
    <Assembly: AssemblyCopyright("2004")>
    <Assembly: AssemblyTrademark("TEST")>

    I know the AssemblyCompany is done with Application.Company and the Assembly Product is done with Application.Product but I can not find the rest...
    10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".

  2. #2
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Wink

    You can easily figure it all out from this small snippet:
    VB Code:
    1. Public Function GetCompanyName() As String
    2.         GetCompanyName = System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).CompanyName
    3.     End Function
    ~Peter


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width