Read the Computer RAM Information - Visual Basic .NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

This is a tutorial on how to read the ram information of a computer in Visual Basic .NET

In this project we need 4 textboxes, and a timer

read ram in visual basic .net

Change the timer Enabled property to True.

Add the following code to Timer1.Tick event

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    TextBox1.Text = My.Computer.Info.TotalPhysicalMemory
    TextBox2.Text = My.Computer.Info.AvailablePhysicalMemory
    TextBox3.Text = My.Computer.Info.TotalVirtualMemory
    TextBox4.Text = My.Computer.Info.AvailableVirtualMemory
End Sub

get the memory information in visual basic .net

Share This

Home | About | Contact | Privacy Policy

Copyright 2017 - All Rights Reserved.