I want to add some graphics to my comboboxes so I would have a description and then a symbol after it. AutoCAD uses it in its layer and colour combos and I would like to mimic that same behaviour.
Can't be done in pure vba/msforms. You can use either API to enhance combobox or, if you have it licensed (and so end user), ImageCombo with ImageList components from Common Controls library (MSComctlLib).
After adding images to the ImageList, the initialisation code could be:
Code:
ImageCombo1.ImageList = ImageList1
With ImageCombo1.ComboItems
.Add Text:="Text 1", Image:=1, SelImage:=2
.Add Text:="Text 2", Image:=2, SelImage:=1
End With
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.