System.Windows.Forms.PictureBox.CancelAsync Method

Cancels an asynchronous image load.

Syntax

public void CancelAsync ()

Remarks

A System.Windows.Forms.PictureBox image is loaded asynchronously when the PictureBox.WaitOnLoad property is false and the erload:System.Windows.Forms.PictureBox.LoadAsync method is used to load the image. If a load is canceled with the PictureBox.CancelAsync method cancellation is reported by raising the PictureBox.LoadCompleted event with the System.ComponentModel.AsyncCompletedEventArgs.Cancelled property of the System.ComponentModel.AsyncCompletedEventArgs set to true.

Requirements

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