Visual Basic: Windows Controls

HotImageList Property

See Also    Example    Applies To

Returns or sets the ImageList control to be used for "hot" imageswhich appear when the cursor hovers over a clickable spot and the Style property is set to tbrTransparent.

Syntax

object.HotImageList [= imageList]

Part Description
object An object expression that evaluates to an object in the Applies To list.
imageList An object reference that specifies which ImageList control to use for "hot" images.

Remarks

The Button object can display only one image for each button. At run time, it first determines how the button should be drawn (i.e., normal, 'hot' or disabled) and then uses the image from the appropriate image list (ImageList, DisabledImageList or HotImageList) using the sole Image property as the key.  It is important to understand that related images in each of the three image lists must be consistently named so that the Toolbar control pulls the correct ones. For example, if a particular button is making use of all three image types, then each of the three images must be defined in their respective image lists to have either the same Index as the other two or the same Key.