System.Windows.Forms.PictureBox.LoadProgressChanged Event

Occurs when the progress of an asynchronous image-loading operation has changed.

Syntax

public event System.ComponentModel.ProgressChangedEventHandler LoadProgressChanged

Remarks

The PictureBox.LoadProgressChanged occurs only when the image is loaded asynchronously by using one of the erload:System.Windows.Forms.PictureBox.LoadAsync methods. The progress percentage of the image load is reported with the System.ComponentModel.ProgressChangedEventArgs.ProgressPercentage property of the System.ComponentModel.ProgressChangedEventArgs.

Handle the PictureBox.LoadProgressChanged if you want to reflect the progress of an asynchronous image-loading operation in a System.Windows.Forms.ProgressBar or similar control. Use the System.ComponentModel.ProgressChangedEventArgs.ProgressPercentage property of the System.ComponentModel.ProgressChangedEventArgs to update the progress value.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0