473,394 Members | 1,022 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,394 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 2679
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.