Winforms: creating a list with a variable height element

I need a simple list control where the height for each item changes. And then I need to draw a custom image for each element.

Basically item_height will be equal to (listbox_width / image_width) * image_height.

Usually I just take the list and point to the paint event, but I need the height of the variable for each element.

Is there an easy way to get a list box with variable height elements?

+5
source share
2 answers

MeasureItem. DrawMode OwnerDrawVariable.

+2

All Articles