System.Windows.Forms.PictureBox.LoadCompleted Event

Occurs when the asynchronous image-load operation is completed, been canceled, or raised an exception.

Syntax

public event System.ComponentModel.AsyncCompletedEventHandler LoadCompleted

Remarks

The PictureBox.LoadCompleted occurs only when the image is loaded asynchronously by using one of the erload:System.Windows.Forms.PictureBox.LoadAsync methods, and PictureBox.WaitOnLoad is false. If the image-load is canceled by calling the PictureBox.CancelAsync method the System.ComponentModel.AsyncCompletedEventArgs.Cancelled property of the System.ComponentModel.AsyncCompletedEventArgs will be set to true. If an exception or error occurs during the load process, it will be caught and the System.ComponentModel.AsyncCompletedEventArgs.Error property of the System.ComponentModel.AsyncCompletedEventArgs will contain the exception information.

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