Replace Method

This method replaces an image in an ImageList control.

Syntax

imagelist.Replace(index, filename)

Parameters

imagelist
Reference to a ImageList control.
index
Index of the image to replace.
filename
File name of the image that will replace the image at index.

Return Value

None.

Remarks

Replace replaces only one image. To remove all images, use the Reset method.