Have a form with a Picture Box control, a Buttton to load the image and a Progress Bar control. Add a Label next to the progress bar to show the % loaded.
The code below loads the Image from internet:
private void btnLoadInternet_Click(object sender, EventArgs e)
if (radNormal.Checked == true)
pict.WaitOnLoad = false;
MessageBox.Show("Check that Internet Connection is available");
Now provide the handler for the
event of the Picture box control. Unlike
will raise the
event when some amount of image bits are downloaded from the http path. Inside the handler, we will use the event argument to decide how much of image is loaded. And the progress bar value is set with the percentage of completion retrieved from the event argument. Also the label control shows the number of percentage.
private void pict_LoadProgressChanged(object sender, ProgressChangedEventArgs e)
progLoadStatus.Value = e.ProgressPercentage;
lblProgress.Text = e.ProgressPercentage.ToString() + "%";