PictureBox.ErrorImage Property

 

Gets or sets the image to display when an error occurs during the image-loading process or if the image load is canceled.

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

public Image ErrorImage { get; set; }

Property Value

Type: System.Drawing.Image

An Image to display if an error occurs during the image-loading process or if the image load is canceled.

If no ErrorImage is specified, a default error image is displayed.

.NET Framework
Available since 2.0
Return to top
Show: