Compare versions of application

It is common for you to want to check whether your application is the latest version of the application. It is possible to compare the version of your application against a version number that you have as a string

You can achieve this by doing something like;

Dim curVer As Version = My.Application.Info.Version
Dim availVer As Version = New Version("")
If availVer > curVer Then
    'The available version is newer
    'You either have the latest version or a future version.
End If

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.