Display Computer Information in Visual Basic.Net

Download
Download is available until [expire_date]
  • 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
, , ,

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.