DeletePictures

Description

Deletes all pictures from an image list.

Applies to

PictureListBox and TreeView controls

Syntax

controlname.DeletePictures ( )

Argument

Description

controlname

The control in which you want to delete all pictures from the image list

Returns

Integer. Returns 1 if it succeeds and -1 if an error occurs.

Examples

Example 1

This example deletes all images from a TreeView control image list:

tv_list.DeletePictures()

See also