Export (0) Print
Expand All

BackgroundWorker.ProgressChanged Event

Occurs when ReportProgress is called.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

public event ProgressChangedEventHandler ProgressChanged

This event is raised when you call the ReportProgress method.

The following code example demonstrates the use of the ProgressChanged event to report the progress of a background operation to the user. To view the complete code for this sample, see How to: Use a Background Worker.


private void bw_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
    this.tbProgress.Text = (e.ProgressPercentage.ToString() + "%");
}


Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2014 Microsoft