property Item.Image as Variant
Specifies the item's icon.

 TypeDescription 
   Variant A long expression that indicates the index of icon being used, a string expression that indicates the base64 encoded string that holds a picture object, or a Picture object. Use the eximages tool to save your picture as base64 encoded format.   

By default, the Image property is 0. The images list collection is 1 based. Use the Image property to assign an icon or a picture to an item. Use the ImageAlignment property to align the image inside the item. Use the Image parameter of the AddItem method to assign an image at adding time. Use the ReplaceIcon and Images method to change the icons list collection at runtime.  At design time, the control displays an icons list window ( if the ShowImageList property is true ) where icons or resource files can be dropped. Use the ItemHeight property to specify the height for all items in the group. 

The following VB sample loads a collection of icons from a BASE64 encoded string:

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

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

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

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

The following Template sample loads a collection of icons from a BASE64 encoded string:


Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.