ProgressChangedEventArgs Class
Assembly: System (in system.dll)
Note: |
|---|
| The HostProtectionAttribute attribute applied to this class has the following Resources property value: SharedState. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes. |
The following code example shows how to use the ProgressChangedEventArgs class. This example is part of a larger example 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
// This event handler updates the progress bar.
private void backgroundWorker1_ProgressChanged(Object sender,
ProgressChangedEventArgs e)
{
this.progressBar1.set_Value(e.get_ProgressPercentage());
} //backgroundWorker1_ProgressChanged
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Reference
ProgressChangedEventArgs MembersSystem.ComponentModel Namespace
BackgroundWorker
Other Resources
How to: Implement a Component that Supports the Asynchronous PatternHow to: Run an Operation in the Background
How to: Implement a Form That Uses a Background Operation
How to: Use Components that Support the Asynchronous Pattern
Note: