ProgressChanged Event
Collapse the table of content
Expand the table of content

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.

For more information about handling events, see NIB: Consuming Events.

The following code example demonstrates the use of the ProgressChanged event to report the progress of an asynchronous operation to the user. This code example is part of a larger example provided for the BackgroundWorker class.

// This event handler updates the progress bar.
private void backgroundWorker1_ProgressChanged(object sender,
    ProgressChangedEventArgs e)
    this.progressBar1.Value = e.ProgressPercentage;

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft