Putting the Version in the Title Bar

Posted on 2005-04-21
Last Modified: 2010-05-18
How can I put the Version in the Title Bar using VB.NET.  I was doing this in VB6, but now I am converting to VB.NET and I cannot do this anymore.  Any ideas?

VB6 Code:

    frm_AddPVar.Caption = "Add Parent Variable - " & "Version " & App.Major & "." & App.Minor & "." & App.Revision

Question by:tobey1
    1 Comment
    LVL 37

    Accepted Solution

    Imports System.Reflection.Assembly

    Dim version As Version = GetExecutingAssembly.GetName.Version

    version will contain major minor etc.

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now