Removes an image object from the object.
Object.RemoveImage ( vKey )
The RemoveImage method syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AImageList |
AImageList control |
|
vKey |
Val Variant |
An integer (Index property) or unique string (Name property) that specifies the image to be removed. |
To remove all AImageListImage objects, use the Clear method.
The following example will remove the third AImageListImage object:
imgl.RemoveImage(2)