Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleUse the SysInfo control to get the operating system version
KeywordsSysInfo, OS version, operating system version
CategoriesSoftware Engineering, Windows, Controls
 
Use the SysInfo control's OSPlatform, OSVersion, and OSBuild properties.

This seems to work only in Windows 95/98 and Windows NT.

 
Private Sub Form_Load()
    Select Case SysInfo1.OSPlatform
        Case 0
            lblOsVersion.Caption = "Win32s"
        Case 1
            lblOsVersion.Caption = "Windows 95 / 98"
        Case 2
            lblOsVersion.Caption = "Windows NT"
    End Select

    lblOsBuild.Caption = Format$(SysInfo1.OSBuild)
    lblOsPlatformId.Caption = Format$(SysInfo1.OSVersion)
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated