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

 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 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. The control's context list may contain icons. Use the BookmarkImageLine property to assign an icon to the control's bookmarks header. Use the BookmarkImage property to display the control's bookmarks header.

The following VB sample loads two icons using BASE64 encoded strings:

If you run the sample you get:

The following sample shows how to replace the entire list of icons, using a Microsoft Image List control ( ImageList1 ):

Edit1.Images ImageList1.hImageList

The following C++ sample loads two icons using BASE64 encoded strings:

The following VB.NET sample loads two icons using BASE64 encoded strings:

The following C# sample loads two icons using BASE64 encoded strings:

The following VFP sample loads two icons using BASE64 encoded strings:

The following screen shot shows the control's images panel, where user can drag icon files in order to add new icons to the control at design mode:


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