In the load event of my program, I want to be able to get the current program version of the program.
Does anyone have some code that would allow me to do this?
Thanks
P.S. I need the Major, the minor, and the revision numbers.
Printable View
In the load event of my program, I want to be able to get the current program version of the program.
Does anyone have some code that would allow me to do this?
Thanks
P.S. I need the Major, the minor, and the revision numbers.
MyForm.Text = "Version: " & Application.ProductVersion
or to get all the individual parts in one object...
Code:Dim v As Version = New Version(Application.ProductVersion)
...
MyForm.Text = "Major: " & v.Major
MyForm.Text = "Minor: " & v.Minor
...' and so on
That does the trick, thanks!