Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8493847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:08:01+00:00 2026-06-10T23:08:01+00:00

I am using Windows Phone to download a file with a WebClient. The DownloadProgressChanged

  • 0

I am using Windows Phone to download a file with a WebClient. The DownloadProgressChanged event does not work. It fires only once, returning a value of “4923206” for DownloadProgressChangedEventArgs.BytesRecieved. My code is:

    private void listBox1_SelectionChanged(object sender, SelectionChangedEventArgs e)
    {
        WebClient wb = new WebClient();
        wb.DownloadProgressChanged += wbchange;
        wb.OpenReadAsync(new Uri("http://sohowww.nascom.nasa.gov/data/LATEST/current_eit_304small.gif"));
    }

    private void wbchange(object sender, DownloadProgressChangedEventArgs e)
    {
        MessageBox.Show(e.BytesReceived.ToString()); (obviously in the end I will not be showing a message at every change)
    }

What is wrong with this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:08:03+00:00Added an answer on June 10, 2026 at 11:08 pm

    It’s working absolutely fine, it just happens to have downloaded all the bytes on the first DownloadProgressChanged invoke.

    If you read the documentation you’ll see that this is the expected behaviour.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to Windows Phone (using PhoneGap). Where does the created file get
I'm making a simple game using the Windows Phone Silverlight and XNA Application type
I've been using SQLite for Windows Phone ( http://wp7sqlite.codeplex.com/ ) trying to do a
Using this tutorial: http://www.c-sharpcorner.com/uploadfile/UrmimalaPal/creating-a-windows-phone-7-application-consuming-data-using-a-wcf-service/ I have created sample/hello world application on the windows phone
I'm using Visual Studio 2012 for Windows Phone 7 and this is my first
I'm using PhoneGap to develop a Windows Phone 7 app. I'm trying to call
I am using the adRotator control with my Windows Phone 7 app. They have
I'm thinking of developing a Windows Phone 7 application using PhoneGap and have a
while programming for windows phone 7, I created a listbox and using DataTemplate which
I am using the Glyphs class to display text in a Windows Phone 7

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.