I have a function that will get the present upload and download rate of my current connection.
It is working now here is my code used:
That code is working..Code:Dim NetSent As New System.Diagnostics.PerformanceCounter Dim NetReceived As New System.Diagnostics.PerformanceCounter Dim KBytesSent As Long Dim KBytesReceived As Long Do Until Me._Stop KBytesSent = Convert.ToInt32(Math.Round(NetSent.NextValue / 1024, 0, MidpointRounding.AwayFromZero)) Me.StatusUP.Text = KBytesSent & " kB/s" KBytesReceived = Convert.ToInt32(Math.Round(NetReceived.NextValue / 1024, 0, MidpointRounding.AwayFromZero)) Me.StatusDown.Text = KBytesReceived & " kB/s" Threading.Thread.Sleep(1000) Loop
However if try to use other speed meter I got different readings..
See image.. my app is #1 in image..
what could be the difference to my codes?





Reply With Quote