pictureIndex

Type: Integer

Availability: Run time only

The pictureIndex property of the Picture class contains the picture that is displayed in a picture box. By default, this value is zero (0); that is, the value of the picture property is displayed. If the value of the pictureIndex property is greater than zero (0), the picture that is added to the picture array by the setPicture method is displayed.

The value of the pictureIndex property must be zero (0) or correspond to a valid array entry.

If the left mouse button is down over the picture box and the pictureDown property is set, that picture is displayed regardless of the setting of the pictureIndex property.

Similarly, if the picture box is disabled and the pictureDisabled property is set, this picture is used regardless of the value of the pictureIndex or pictureDown property.