Found it. You have to add the individual items with AddItem method. Then the pictures will work.
Thanks again!
Don
>Plinio,
>
>I tried this on a listbox and could not get any results. I watched as I debugged line by line and the Picture[n] properties stayed with an empty string. I know the .bmp files exist and I'm entering the correct path. Is there another setting I need to make them display? Also, how would I associate Picture[1...n] with any specific item in the list?
>
>Thanks,
>
>Don
>
>>Try something like:
>>THISFORM.combobox1.PICTURE[1] = "c:\picture1.bmp"
>>THISFORM.combobox1.PICTURE[2] = C:\picture2.bmp"
>>
>>I have not test them, but it works for lists.
>>
>>>Is there any way to show a different icon for individual items in a dropdown list type combobox? BTW, the items are populated by a cursor.
>>>
>>>I tried setting the Picture property, but it put the same icon on each item.
>>>
>>>Thanks in advance!
>>>
>>>Don
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement