This property sets whether or not previously loaded images are cleared when an image is loaded into the Thumbnail Control.
[Visual
Basic] thumbcontrolname.ClearOnLoad
[ = Boolean ]
[Visual C++] [
BOOL = ]thumbcontrolname.GetClearOnLoad()
thumbcontrolname.SetClearOnLoad(BOOL Val)
thumbcontrolname.SetClearOnLoad(BOOL Val)
Property Value
Value | Explanation |
---|---|
True | When an image is loaded, the previously loaded image is cleared (default) |
False | When an image is loaded, the previously loaded image is not cleared |
Explanation
The ClearOnLoad property sets whether or not previously loaded images are cleared when an image is loaded into the Thumbnail Control. True is the default value. When False, the image loaded is added to the previously loaded images. A good example of when to use this property is when using an ADF to continuously scan images or when retrieving multiple images, one by one, from a datasource.
When this property is False, the ThumbnailFile property will be disabled and the thumbnail file will not be created.
Setting this value
This value can be set at design-time and run-time.Retrieving this value
This value can be retrieved at run-time.