Results 1 to 3 of 3

Thread: [RESOLVED] Assembly Information Retrieval

  1. #1

    Thread Starter
    Addicted Member Tjoppie's Avatar
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    241

    Resolved [RESOLVED] Assembly Information Retrieval

    How do I retrieve information that's saved in the assemblyinfo.vb file? What information is normally stored in that file? I want to like, view the information on my splash screen, like the copyright info etc etc that comes from the assembly info.

    Thanks

    Rudi

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Assembly Information Retrieval

    Some of the info is available through the Application class.

    The rest I think you would have to get via reflection, e.g.:
    VB Code:
    1. Dim copyrightAttributes As Object() = Reflection.Assembly.GetAssembly(Me.GetType()).GetCustomAttributes(GetType(Reflection.AssemblyCopyrightAttribute), True)
    2.  
    3. For Each attr As Reflection.AssemblyCopyrightAttribute In copyrightAttributes
    4.     MessageBox.Show(attr.Copyright)
    5. Next attr
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member Tjoppie's Avatar
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    241

    Re: Assembly Information Retrieval

    Thanks

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