I want to implement a combobox (in drop-down list mode), where the items in the drop-down list are 64 in height, but where the dropdown list item displays itself at normal height. The use case here is a list containing file names with an image thumbnail next to it. I want the ordinary display to be normal height with a small thumbnail, but much larger thumbnails in the associated drop-down list.
When I’ve tried modifying the item height, the entire combobox is set to accommodate it, not just the drop-down list (entirely reasonably I suppose).
Is this possible?
Thanks for any tips.
Robin
I believe you need to make the Combobox owner drawn and use the Measure event.
The Event passes the MeasureItemEventArgs which includes the index to the item being drawn.
Here is a sample from Microsoft’s documentation Combobox.Measure event