BackgroundWorker.ProgressChanged Event


Occurs when ReportProgress is called.

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

Public Event ProgressChanged As ProgressChangedEventHandler

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 Sub backgroundWorker1_ProgressChanged( _
ByVal sender As Object, ByVal e As ProgressChangedEventArgs) _
Handles backgroundWorker1.ProgressChanged

    Me.progressBar1.Value = e.ProgressPercentage

End Sub

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