- Version
- Download 144
- File Size 156.17 KB
- File Count 1
- Create Date April 5, 2016
- Last Updated April 5, 2016
Display Computer Information in Visual Basic.Net
Display Computer Information in Visual Basic.Net
Example program in vb.net that will retrieve the computers information such as computer name, os installed on the unit and ram.
The sample source code is written in windows form and console based.
Source code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label2.Text = My.Computer.Name
Label3.Text = My.Computer.Info.OSFullName
Label7.Text = My.Computer.Info.OSPlatform
Label5.Text = System.Math.Round(My.Computer.Info.TotalPhysicalMemory / (1024 * 1024 * 1024)) & "gb"
Label9.Text = SystemInformation.PrimaryMonitorSize.Width & " x " & SystemInformation.PrimaryMonitorSize.Height
End Sub
End Class