ProgressChangedEventArgs::UserState Property
Gets a unique user state.
Assembly: System (in System.dll)
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the PictureBox::LoadProgressChanged event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing MessageBox::Show with Console::WriteLine or appending the message to a multiline TextBox.
To run the example code, paste it into a project that contains an instance of type PictureBox named PictureBox1. Then ensure that the event handler is associated with the PictureBox::LoadProgressChanged event.
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
BackgroundWorker
ProgressChangedEventArgs Class
System.ComponentModel Namespace
How to: Implement a Component That Supports the Event-based Asynchronous Pattern
How to: Run an Operation in the Background
How to: Implement a Form That Uses a Background Operation
How to: Use Components That Support the Event-based Asynchronous Pattern