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

Posted on 2008-11-12
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

    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

    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

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

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now