method ComboBox.Images (Handle as Variant)

Sets at runtime the control's image list.

 TypeDescription 
   Handle as Variant A long expression that identifies a handle to an Image list ( the Handle should be of HIMAGELIST type ), or a string expression that indicates the base64 encoded string that holds the icons list. Use the eximages tool to save your icons/pictures as base64 encoded format.  
The control provides an image list window, that's displayed at design time. Use the ShowImageList property to hide the image list window, at design time. At design time, the user can add new icons to the control's Images collection, by dragging icon files, exe files, etc, to the images list window. At runtime, the user can use the Images and ReplaceIcon method to change the Images collection. The Images collection is 1 based. Use the CellImage property to assign an icon to a cell. Use the CellImages property to assign multiple icons to a cell. Use the HeaderImage property to assign an icon to the column's header. 

The following VB sample replaces the entire list of icons ( if it was loaded at design time ), using a Microsoft Image List control ( ImageList1 ):

ComboBox1.Images ImageList1.hImageList

The following VB sample initializes the Images collection using BASE64 encoded string:

The following C++ sample initializes the Images collection using BASE64 encoded string:

The following VB.NET sample initializes the Images collection using BASE64 encoded string:

The following C# sample initializes the Images collection using BASE64 encoded string:

The following VFP sample initializes the Images collection using BASE64 encoded string:

 

 


Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.