BackgroundWorker.ProgressChanged Event

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Occurs when ReportProgress is called.

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

Syntax

Public Event ProgressChanged As ProgressChangedEventHandler
public event ProgressChangedEventHandler ProgressChanged

Remarks

This event is raised when you call the ReportProgress method.

Examples

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 for Windows Phone 8.

Private Sub bw_ProgressChanged(ByVal sender As Object, ByVal e As ProgressChangedEventArgs)
    Me.tbProgress.Text = e.ProgressPercentage.ToString() & "%"
End Sub
private void bw_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
    this.tbProgress.Text = (e.ProgressPercentage.ToString() + "%");
}

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

BackgroundWorker Class

System.ComponentModel Namespace

Other Resources

How to use a background worker for Windows Phone 8