Okay Ive found some code on how to display Virtual and Physical Memory but its not working
:'( any help :@

Here i show the timer will start :

Private Sub TabControlMemFreePlus_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabControlMemFreePlus.SelectedIndexChanged
        If Me.TabControlMemFreePlus.SelectedIndex = 1 Then
            Call UpdateProcessList()
        End If
        If Me.TabControlMemFreePlus.SelectedIndex = 2 Then
            Call GETUSERINFO()
        End If
    End Sub

Here's the code for supposed Memory :

Dim total1 As String = My.Computer.Info.TotalPhysicalMemory
        Dim avail1 As String = My.Computer.Info.AvailablePhysicalMemory
        Dim total2 As String = My.Computer.Info.TotalVirtualMemory
        Dim avail2 As String = My.Computer.Info.AvailableVirtualMemory
        Dim final1 As String = avail1 / total1
        Dim final2 As String = avail2 / total2
        ProgressBarPhys.Value = final1
        ProgressBarVirtl.Value = final2

Edited 4 Years Ago by VB 2012: n/a

Is there an error?
Have you debugged the code to see if the code for TimerMemProgress is being trigged and executed?

yes it does but only keep showing one percent of progress bar (meaning in green value)
Doesn't make sense

The Maximum value of the ProgressBar should be set to TotalPhysicalMemory.
Although, the answer could be in that you divide AvailablePhysicalMemory with TotalPhysicalMemory. Why is that?

Let's say that you have 4Gb in total memory, and 2.5Gb available.
2.5 / 4 = 0.625 = 625Mb, ie a fraction of the memory is displayed in the progressbar.

See if this helps.

Dim final1 As String = avail1 / total1 * 100
        Dim final2 As String = avail2 / total2 * 100

I will try it soon but I've gotten a New Pc so im still Bringing it up To My normal Standards :)

Dam.n your normal.standards man!:D
Enjoy them; for mine make my life easier to deal with and everyone else's life much better to be dealt with.:)

This article has been dead for over six months. Start a new discussion instead.