Results 1 to 3 of 3

Thread: Image Combo Box

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17
    Hi there!

    I'm trying to add an image combo box to my application. It will be something similar to ICQ whereby the items in the box are names accompained by the correct status (e.g an incoming message, chat request, incoming file request, etc)

    Regards

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Image combobox works the same way as TreeView and ListView. It means that you have to use ComboItem object to add items to ImageCombo. Also, in order for you to add pictures to it along with the text, you would have to add an ImageList to your form, then using property pages, add Icons of your choice (giving Key name for each icon), then you can use something liek this:
    Code:
    Dim cmb As ComboItem
    
    With ImageCombo
        .ImageList = ImageList1
        Set cmb = .ComboItems.Add(, , "This is a Demo Item", "MyImage")
    End With
    Assuming that you have an Icon (or any picture type) in the ImageList with the KeyName MyImage.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17
    yes, I understand this can be done, but what if I want the icons to appear dynamically. For example, only when the user sends a chat request to me then the icon beside that person's name will start to appear


Posting Permissions

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



Click Here to Expand Forum to Full Width