Add (ImageList)

This method adds an image to an ImageList control. Images can be .bmp, .dib or .2bp format.

Syntax

imagelist.Add(filename)

Parameters

imagelist
Reference to an ImageList control.
filename
Required. String that contains the name of the file to be added including the path.

Return Value

None.

Remarks

Add uses the name of a valid image file to add the image to the ImageList. Images can be different sizes, but after you add the first image, all subsequently added images will be sized identically to the first.