VB.NET: Using a WebClient to Track Downloads (Visual Basic 2008,2010,2012)
Вставка
- Опубліковано 5 лют 2025
- By popular request, I will discuss how to track downloads using a progressbar and label in this tutorial. This is done through the usage of the WebClient object, which handles asynchronous downloads very well. I still don't know what the program freeze was, though. Maybe one of you could shed some light on the topic!
Thanks for watching!
brandonsoft.com
Discuss:
bpforums.info
Follow me on Twitter:
/ brandonio21
Like me on Facebook:
/ brandonioproductions
I don't know how all your tutorials aren't the most viewed ones. The quality, your voice and the explanations are definitely the best ones on UA-cam. Thanks a lot!
JACOBFLARSEN Thanks so much for your comments! I really appreciate them! It wouldn't be possible without viewers like you, so thanks for watching!
Ik this video is a while ago but its actually really helpful to this day, and you explain everything
Excellent tutorial Brandon, i'm in the process of watch quite a few of them so keep them coming !!!
Thank you so much. Even the first 2:18 minutes helped ^^. You are the best.
I'm wondering that if I could take the link from the browser and it will download, not the direct download link (Normally I have to Inspect that page to find the direct download link :/)
Can you make video progressbar with percentage (%) download zip files and after completion download progress bar get 0 % (auto reset) and extract location?
Thank you very much about your video.
I have one question, How to calculate transfer rate to this file?
Best Regards;
Mr. Mohammed.Alshereif
Nice tutorial, keep it up.
Another thing i would like to know is how can you tell if there was an obstruction in net connection or the download failed or the link is no longer valid to give a msgbox respectively.
+sniperghostwarrior1 Thank you very much! And thanks for watching.
One way to tell if there is a net obstruction is to implement a timer that watches the progress of the download. If the progress hasn't changed in x amount of time (say, 10 seconds), there must be a network issue. A constant ping to a known source may also be a good way of retrieving whether the network is available.
+BrandonioProductions Thanks for your reply. It will be nice if you can provide a sample code for what you suggested.
I have another question. How to get the download transfer rate?
Helvecio Neto Thank You It Worked. I just tweaked your idea and it worked. Thanks Again for your response.
i guess it takes longer because you used a "/" in the download location. normally you have to use a "\" for a windows path. and in the debug mode it has to create a virtual download directory as well
It actually doesn't stop responding when I use it on my computer.
Really? Well this is great to hear! It was probably just something funky with my machine then. I will wait to see what other viewers report before making any assertions, however. Thanks for watching!
Hey, can u tell me how to get the time left. Just give any idea. I will try that.
Currently i uninstalled Visual Basics because of some errors. So I will try your method next week when i download it again. Where ever you are thank you BRO.
How do u do a url box for a download?
where does it download to?
Where is it saved?
Great tutorial!
Thanks a lot! More importantly, thanks for taking the time to watch this tutorial!
Superb
Thx, perfect works
NOT DOWNLOADING!
144p?
It was 144p max when I saw it.
SHIT!
SHIT!