Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
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-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated