[Category("Behavior")] [DefaultValue(false)] [Description("Whether LoadImage throws any exception that occurs trying to load an Image.")] public virtual bool ThrowsExceptions {get; set;}
[Category("Behavior")] [DefaultValue(false)] [Description("Whether LoadImage throws any exception that occurs trying to load an Image.")] public virtual bool ThrowsExceptions {get; set;}
You may want to set this to true to help debug why an image does not appear. LoadImage will first send the exception's message to trace listeners. Then if this property is true, the catch handler will rethrow the exception.
This flag may help you debug any image loading exceptions, but there can be other reasons for an image not to appear. Perhaps the most common problem is that information, such as the Name, is not present for LoadImage to be able to find the image data. This will occur, for example, if you set the Image property alone and then serialize/deserialize this GoImage
, because Image
data and ResourceManager
s are not serialized.