SelectedImageIndex Property

Gets or sets the index of the image in the Images collection that will be displayed when the tab is selected. Smartclient-only.

object.SelectedImageIndex = [integer]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and integer is the index of the image you wish to display.

Client support

Newlook Smartclient only.

Use

This property is used to specify the index of the image (within an associated ImageList control) that you wish to display in the tab button when this tab page is selected.

If the TabStyle property is set to Custom, then the image will display centered, as the background of the tab button and any button text will appear on top of the image. If the TabStyle property is set to Normal then the image will display as an icon to the left of the button text.

NOTE:

Before setting the ImageIndex property, you must associate an existing ImageList control to the active control via the ImageList property. Ensure that the image height and width are set to an appropriate value within your ImageList control.

See Also

ImageList Property | ImageList control | ImageIndex property | HoverImageIndex property

Applies To

TabPage control


© 2004-2021 looksoftware. All rights reserved.