OperatingSystem Property Example

The following example displays system information in a label on a form.

lblSystemInfo.Caption=System.OperatingSystem

This example prints the name of the current operating system in the Immediate window.

myOpSys = System.OperatingSystem