method CalendarCombo.Images (Handle as Variant)
Sets the control's handle image list.

Handle as Variant The Handle parameter can be:
  • A string expression that specifies the ICO file to add. The ICO file format is an image file format for computer icons in Microsoft Windows. ICO files contain one or more small images at multiple sizes and color depths, such that they may be scaled appropriately. For instance, Images("c:\temp\copy.ico") method adds the sync.ico file to the control's Images collection (string, loads the icon using its path) 
  • A string expression that indicates the BASE64 encoded string that holds the icons list. Use the Exontrol's ExImages tool to save/load your icons as BASE64 encoded format. In this case the string may begin with "gBJJ..." (string, loads icons using base64 encoded string)
  • A reference to a Microsoft ImageList control (mscomctl.ocx, MSComctlLib.ImageList type) that holds the icons to add (object, loads icons from a Microsoft ImageList control)
  • A reference to a Picture (IPictureDisp implementation) that holds the icon to add. For instance, the VB's LoadPicture (Function LoadPicture([FileName], [Size], [ColorDepth], [X], [Y]) As IPictureDisp) or LoadResPicture (Function LoadResPicture(id, restype As Integer) As IPictureDisp) returns a picture object (object, loads icon from a Picture object)
  • A long expression that identifies a handle to an Image List Control ( the Handle should be of HIMAGELIST type ). On 64-bit platforms, the Handle parameter must be a Variant of LongLong / LONG_PTR data type ( signed 64-bit (8-byte) integers ), saved under llVal field, as VT_I8 type. The LONGLONG / LONG_PTR is __int64, a 64-bit integer. For instance, in C++ you can use as Images( COleVariant( (LONG_PTR)hImageList) ) or Images( COleVariant( (LONGLONG)hImageList) ), where hImageList is of HIMAGELIST type. The GetSafeHandle() method of the CImageList gets the HIMAGELIST handle (long, loads icon from HIMAGELIST type)

The user can add images at design time, by drag and drop files to control's images panel. Use the ShowImageList property to hide the control's images panel. The ImageSize property defines the size (width/height) of the icons within the control's Images collection. Use the Image property to assign an icon to a date. Use the CheckImage property to change the visual appearance of the control's checkbox.

The following sample loads icons from a BASE64 encoded strings:

With Calendar1
    .BackColor = vbWhite
    .AutoSize = False
    .FixedCellWidth = 32
    .Images "gBJJgBAICAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwkbiAAQGJqrAxgAxjAwt8w+Pib/x2NymJQFNymdzGNyNyymHyefyGeyGaoOoy+n02V2GhtOlyG0jOb28Z1lAykb1mjh+w0nB2Vg4GW22I3Wg3G9nfO5eQ32vw+q4fI4OH4tT4+t2GZxW95ugneq6fSjXd6+IxXW7PE7dR23r3e45Xe80z8H26Pszbuvc7EBO8+KqvXA73ss37Xpo1j8v7BDLNVALYwK7jGuq9sNM3CjbOgnMFtq4L7QjAkLKs/bhQS2EJsU5KhxK+0SRXE6tQ7FcbwlFz4KVEsPxqrr1sNFbdqvIUgSRJMlSXJCLB8lcno8kCRJIACSpRK6cO1JiZIojZ+H+ebLI0eAfnBMaMnAB5wB+jZwAOYAHzdOABzmQEsscA87t9Os6vTPs+EAA8+TfNwBnxOUyAGf1EoyfIHn+T8hx4gIA=="
    With .Events.Add(Date + 1)
        .Image = 1
    End With
    With .Events.Add(Date + 2)
        .Image = 2
    End With
End With

If you run the sample you will see:


The following sample uses the Microsoft Image List control:

CalendarCombo1.Images ImageList1.hImageList