NewImageListPicture |
Description
Adds a picture to an imagelist, but only if the specified key does not already exist. |
Syntax
[Index =] oFrm. NewImageListPicture ( ImageList, Picture, Key ) |
Parameters
Part |
Description |
Index = |
(Return value) The location (index) at which the picture was stored in the imagelist (or the location of a previous picture with the specified Key). |
oFrm |
A reference to a form object (see the NewForm method) |
ImageList |
Specifies the imagelist object to which the picture should be added |
Picture |
Specifies the picture to be added to the imagelist |
Key |
A unique string that identifies the picture |
Example
See the GetAssociatedIcon page for an example |