method List.Images (Handle as Variant)
Sets at runtime the control's image list. The Handle should be a handle to an Image List control (HIMAGELIST type).

 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 as base64 encoded format.    
The user can add images at design time, by drag and drop files to list's image holder. Use the ReplaceIcon method to update the images list collection at runtime. Use the CellImage, CellImages properties to assign icons to a cell. Use the CellPicture property to assign a custom size picture to a cell. Use the CheckImage or RadioImage property to specify a different look for checkboxes or radio buttons in the cells.

The following VB sample loads an icon using the BASE64 encoded string:

The following VB sample uses the Microsoft Image List control:

List1.Images ImageList1.hImageList

The following C++ sample loads icons from a BASE64 encoded string:

The following VB.NET sample loads icons from a BASE64 encoded string:

The following C# sample loads icons from a BASE64 encoded string:

The following VFP sample loads icons from a BASE64 encoded string:

 


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