TCnPictureBox.CancelAsync Method

Cancels an asynchronous image load.

Namespace: CNClrLib.Control.PictureBox
public
 procedure CancelAsync;

A TCnPictureBox image is loaded asynchronously when the WaitOnLoad property is false and the LoadAsync method is used to load the image. If a load is canceled with the CancelAsync method cancellation is reported by raising the OnLoadCompleted event with the Cancelled property of the AsyncCompletedEventArgs set to true.