I would like to know how to determine if the operating system is for Windows 7 people, I am a little newbie and have no idea how to do this. Please let me know if possible, and the code for this.
See the Environment.OSVersion property on MSDN . This is a static property that returns the OperatingSystem object that Version has, and you can simply check the Major and Minor version numbers to see if it is 6.1 ( Windows 7 is actually version 6.1 ).
Environment.OSVersion
OperatingSystem
Version
Major
Minor
Dim osVer As Version = Environment.OSVersion.Version If osVer.Major = 6 And osVer.Minor = 1 Then Console.WriteLine("win7!!") End If
I assume you are a little new to what you are actually using VB.NET, not classic VB 6.
In VB.NET you can use:
Dim osVersion As String = System.Environment.OSVersion.ToString()
Source: https://habr.com/ru/post/891860/More articles:Do apache automatically disable www.? - redirectscanf% d segfault with large input - cWhat is the threshold point in the perceptron? - artificial-intelligencephp 101 DateTime using atom format - phpHow to download and execute binary ELF executable manually? - cSQL Server Cross Database Attribute - databaseHow to override theme function in drupal? - drupal-7convert ahk to python - pythonDownload jQuery () and national letters (for example, ę, ±, ć) - jqueryCan jQuery ready () function be used twice for the same element? - javascriptAll Articles