Tag Archives: operating system version

Get the computer’s operating system in C#

This example uses the following code to display the operating system version when it starts. private void Form1_Load(object sender, EventArgs e) { OperatingSystem os_info = System.Environment.OSVersion; lblOs.Text = os_info.VersionString + “\n\nWindows ” + GetOsName(os_info); } This example simply gets the … Continue reading

Posted in system | Tagged , , , , , , , , , | Leave a comment