Results 1 to 4 of 4

Thread: ImageList (XP)

  1. #1
    4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ImageList (XP)

    Hi, I have been developing a form and whilst searching through the posts here in the Lounge for examples of drag and drop I came across <post#=85547>post 85547</post#> . The example has been very useful in furthering my understanding of drag and drop, but this post is about the ImageList control. There was an example on the link from that post , 'DragDrop.exe', which I have looked at, and got stumped on one thing!

    I understand how to set up an imagelist to contain icons or images, and then use them in other control by indexing them - thats cool. What got me from the example is how the 2 imagelists therein already had icons stored in them!

    How do you 'save' an imagelist like this?! I presume the details are stored in the registry as this was an exe and installed itself before i ran the example. Is it simple? <img src=/S/doh.gif border=0 alt=doh width=15 height=15>
    Thanks,

    pmatz

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: ImageList (XP)

    No, the images (icons) are stored in the userform. It works as follows:

    Open the DragDropExample.xls workbook you downloaded from Stephen Bullen's site.
    Activate the Visual Basic Editor.
    Double click frmDragDrop in the Project Explorer to view the design of the form.
    Select one of the ImageList controls.
    Click in the (Custom) property in the Properties window; it is the second property, between (About) and (Name).
    Click the ellipsis button ... in this property.
    You will see the property pages for the ImageList control.
    Activate the Images tab.
    Here, you will see the 8 images stored in the control, and buttons Insert Picture and Remove Picture to add/remove pictures.
    If you create your own ImageList control, there will be no images in it; use the Insert Picture button to add images stored on disk.
    The default extensions are .bmp (bitmap) and .ico (icon), but by selecting All Files, you can also use .jpg files.

  3. #3
    4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: ImageList (XP)

    Ah, thanks Hans <img src=/S/smile.gif border=0 alt=smile width=15 height=15> i didn't look there before, because when i tried it i got the following error:

    <font color=008080>License information for this component not found. You don't have an appropriate license to use this functionality in the design environment (Error 429)
    You are not a licensed user of the ActiveX control. This error has the following cause and solution:
    You tried to place an ActiveX control on a form at design time or tried to add a form with an ActiveX control on it to a project, but the associated information in the registry could not be found.
    The information in the registry may have been deleted or become corrupted. Reinstall the ActiveX control or contact the control vendor. </font color=008080>

    This is i think because i uninstalled the exe, I guess. However, I inserted a ListImage control of my own (SP6) and clicked said 'custom' field. This gave me the property page dialog as you described, and exactly the kind of thing I was hoping you can do.
    <img src=/S/thankyou.gif border=0 alt=thankyou width=40 height=15>
    Thanks,

    pmatz

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: ImageList (XP)

    The Image Controls in Stephen Bullen's spreadsheet are Microsoft ImageList Control 5.0, the version from Office 97/Visual Basic 5. The one installed on your PC is Microsoft ImageList Control 6.0, the version in Office 2000 and up/Visual Basic 6.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •