hi, can i request bandwidth monitor in vb.net
|
.NET
bandwidth monitor |
|
Hi, can I request you to check out a website called google on the internet? It is capable of returning exactly what you need.
https://encrypted.google.com/search?hl=e...h%20vb.net WOAH, that's a lot of results!!
Now HOW TO CODE IT?
For this tutorial I created a module that we will use to get the current download and upload amount. First I have declared 2 public variables DLoad and ULoad. Both are declared as Long because they will hold large numbers. DLoad will hold the amount of downloaded stuff in bytes until now and ULoad the upload. Then we have a function called GetLoadInfo() which will fill the variables above. In this function first we see 2 variables and this line: Code Shell "cmd.exe /C netstat -e> " & Chr(34) & App.Path & "\Load.tmp" & Chr(34), vbHideThis means that netstat –e will be called and the results will be stored in the file Load.tmp in the application path. After this line we have some other code: Code On Error GoTo PassReadThe 2 variables will be used to read what is stored in the netstat’s results. After this, the results will get split. This is done in the next lines: Code SString = Split(LoadStr, "Bytes")Now the whole module looks like this: Code Public ULoad As LongNow we can create the form… In the form first we declare 3 variables, LastULoad, LastDLoad, SeccondsPassed all of them as Long, then we create 2 labels, lblDC and lblUC (label Download Container and label Upload Container), we add a timer, we set the timer’s interval to 1000 milliseconds and add this code to the timer: Code Private Sub Timer1_Timer()After this code we see that the LastDLoad and LastULoad variables are being filled with new values, getting ready for the next calculation. This is all… If anything doesn’t work, download the attachment and find the errors. In the attachment the Bandwidth Meter is much advanced, it has graphs included to show the download and upload rates. Source: http://forum.codecall.net/topic/42750-ho...h-monitor/
Aug 28, 2012 09:09 PM
(This post was last modified: Aug 28, 2012 09:11 PM by memesbro.)
Dude above me, change your source tags to code.
Code Not [source][/source]EDIT : There ya go. Thanks for completely spoon feeding this guy. I'm sure he won't even say thanks lol.
Aug 28, 2012 09:36 PM
(This post was last modified: Aug 28, 2012 09:37 PM by Fake..)
(Aug 28, 2012 09:08 PM)Milhouse Wrote: First I have declared 2 public variables DLoad and ULoad. Both are declared as Long because they will hold large numbers. DLoad will hold the amount of downloaded stuff in bytes until now and ULoad the upload. Congrats; on most systems, you'll get an overflow error just after 2.1GB of downloading or uploading. Unless you're handling errors. ![]() (Aug 28, 2012 09:16 PM)elace31206 Wrote: thanks for the response, does this have graph? Hah..dude you can't be serious? Do even understand programming? Like at all? I usually don't bag on newbies because we all were all there at one point, but this is quite serious. I gave you a google search with like 3 pages of full source results! |
|
|


![[Image: Xtddh8V.png]](https://i.imgur.com/Xtddh8V.png)