method Button.Images (Handle as Variant)
Sets at runtime the control's image list. 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.  
Use the Images method to load a list of icons to the button. The list of icons should be list of 16 x 16 icons. Use the Image property to assign a picture/image to the button.

The following sample adds two icons to the control's images list and change the button's icon when user clicks the button:

 

 


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