Results 1 to 8 of 8

Thread: Project/App information

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2004
    Posts
    65

    Project/App information

    In VB6, we had this

    App.Version
    App.Title

    and stuff. How do I get the same in VB.NET? I guess it'll be coming from some assembly manifest or something and it'd have something to do with reflection, but I am lost. Kind help.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Project/App information

    application.productversion
    application.productname

  3. #3
    Frenzied Member ntg's Avatar
    Join Date
    Sep 2004
    Posts
    1,449

    Re: Project/App information

    Try the 101 examples, I think they all have an about form that does the VB6 equivalent things.

    Cheers,
    NTG
    "Feel the force...read the source..."
    Utilities: POPFileDebugViewProcess ExplorerWiresharkKeePassUltraVNCPic2Ascii
    .Net tools & open source: DotNetNukelog4NetCLRProfiler
    My open source projects: Thales SimulatorEFT CalculatorSystem Info ReporterVSS2SVNIBAN Functions
    Customer quote: "If the server has a RAID array, why should we bother with backups?"
    Programmer quote: "I never comment my code. Something that is hard to write should be impossible to comprehend."
    Ignorant quote: "I have no respect for universities, as they teach not practicle stuff, and charge money for"

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Nov 2004
    Posts
    65

    Re: Project/App information

    Quote Originally Posted by kleinma
    application.productversion
    application.productname
    There's no application object in VS.NET 2003 as far as I am aware. Please elaborate. I might be missing something.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Nov 2004
    Posts
    65

    Re: Project/App information

    OK, sorry! I must amplify my question. The project type I am coding is SharedAdd-in which is a COMAddin for ms outlook. So there's no application object there that represents my project (and not the outlook application object). It's (my project) a dll.

    Help, please.

  6. #6
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Project/App information

    I don't think it is available in class libraries, since they are technically not applications but they support applications... but it is no doubt there in a regular windows application (probably console too.. i didnt check)

    so where are you trying to use this code...

  7. #7
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    Re: Project/App information

    The full namespace of the Application object is System.Windows.Forms.Application so to access it in a Class Library you would need to import that namespace AND make a reference to System.Windows.Forms or just make a reference AND use the fully qualified name all the time.

  8. #8
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Project/App information

    seeing that the AssemblyInfo.vb file contains what you are looking for.. couldn't you use reflection to get the values out of the assembly manifest?

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