473,396 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Get currently used Network Bandwidth with VisualBasic.NET or VJ#

Hi all,
I would like to read the currently used bandwidth using VB.NET or VJ#. I
tried using the PerformanceCounter but this one only displays the
available bandwidth and not the used bandwidth. Can anybody point me to
the solution for this problem?

Thanks in advance, Filip
Jul 21 '05 #1
2 2681
You *might* try with System.Management, something along these lines...

Dim a As New System.Management.ManagementObjectSearcher("SELECT
* FROM Win32_PerfFormattedData_Tcpip_NetworkInterface")
Dim b As System.Management.ManagementObject
For Each b In a.Get
MsgBox(b("Property").ToString)
Next

Being "Property" one of these...

http://msdn.microsoft.com/library/de...kinterface.asp

I have not tested this one though. If it does not work, dig a little
deeper into msdn for the WMI classes to see if you find something that
does. Hope it helps.

S

Jul 21 '05 #2
Hi,
thanks alot. I'll tell you as soon as I tried.

Filip

Samuel Caparros schrieb:
You *might* try with System.Management, something along these lines...

Dim a As New System.Management.ManagementObjectSearcher("SELECT
* FROM Win32_PerfFormattedData_Tcpip_NetworkInterface")
Dim b As System.Management.ManagementObject
For Each b In a.Get
MsgBox(b("Property").ToString)
Next

Being "Property" one of these...

http://msdn.microsoft.com/library/de...kinterface.asp

I have not tested this one though. If it does not work, dig a little
deeper into msdn for the WMI classes to see if you find something that
does. Hope it helps.

S

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Oliver | last post by:
Hello, I may have posted in the wrong place, if so, feel free to move my post (just notify me where you put it via email or something) I’m having a problem with my program that I cant...
8
by: Debbie | last post by:
Thank you for any help you can give me. I have a database that I've been working on... a backend for the server and front ends for the users. Now I've found out that the network is wireless and...
14
by: frostalicious | last post by:
Used VB.NET (on my client PC) to convert VB6 executable to .NET executable. Placed the .exe file on a network drive on my server. From client, ran .NET Wizards "Trust an Assembly" to make the...
2
by: Filip Polsakiewicz | last post by:
Hi all, I would like to read the currently used bandwidth using VB.NET or VJ#. I tried using the PerformanceCounter but this one only displays the available bandwidth and not the used bandwidth....
5
by: CThelen | last post by:
I'm hoping someone here can help me with this problem(s). I am teaching a high school Basic Programming class and we have changed over to Visual Basic Express 2005 Ed. The program has been...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
6
by: MuZZy | last post by:
Hi, I am looking to find a way to get currently logged in user's object GUID without querying ActiveDirectory. For example, when i log in to my laptop from home, I'm not on the office network so...
1
nguyenthao
by: nguyenthao | last post by:
Could you please tell me what the factors that determine the network latency are? And what exactly is the measurement of bandwidth. Some say Hertz, others say (giga/mega/kilo...)bit/s. And, in...
1
by: yawesome | last post by:
I am using Microsoft.VisualBasic.Devices.Network to download a file from a server to a PC and am receiving a 404 error. The file is in teh download location but it has 0kb. Does anyone have any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.