Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Progress bar on My.Computer.Network.DownloadFile doesn't move

Posted on 2008-11-12
Medium Priority
Last Modified: 2012-05-05
I am using My.Computer.Network.DownloadFile to download a file from an FTP server in a VB 2008 WinForm app. I have the ShowUI argument set to TRUE so that it shows a progress window. However, when I run the code, it show's the progress window but the progress bar doesn't increment. The file eventually downloads and the progress window dissapears, but at no point does the progress bar in this window increment at all. Any ideas why?
Question by:SETP
LVL 25

Accepted Solution

Luis Pérez earned 2000 total points
ID: 22938502
Sometimes FTP servers doesn't give information to the client - I don't know the reason - on how many bytes are downloaded of the file. Probably the problem is not from the VB dialog; try using a common FTP client application (like FileZilla) and 99% sure that you'll see the same problem (file will be downloaded but you'll se no progress meanwhile).

Author Comment

ID: 22938786
Hi Roland. Thank you very much for your reply. I was hoping you were right, but after downloading the exact same file with CoreFTP, I realized the problem must be something else because in that program it does in fact show the progress. :/
LVL 14

Expert Comment

ID: 22957252
Does the old trick of DoEvents Do anything to update the progress bar?

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question