Hi there!
I hope one of you has already worked with owner drawn combo boxes. In my custom combobox, I have set DrawMode = DrawMode.OwnerDrawVariable, and the items in the drop down list all have variable height. This is working so far - but:
How can I adjust the total height of the drop down list to fit all the items?
If you don't understand what I mean, consider the example on this site:
If you run the example, a combo box with three items in its list appears. However there is a scroll bar on the right, and the user has to scroll to see all the three items. I'd like to adjust the height of the list such that all three items can be seen at once.
I already tried to increase ItemHeight, but this also increases the height of the text box area of the combo box, and this shall not happen.
Thanks a lot for any suggestions!
I hope one of you has already worked with owner drawn combo boxes. In my custom combobox, I have set DrawMode = DrawMode.OwnerDrawVariable, and the items in the drop down list all have variable height. This is working so far - but:
How can I adjust the total height of the drop down list to fit all the items?
If you don't understand what I mean, consider the example on this site:
If you run the example, a combo box with three items in its list appears. However there is a scroll bar on the right, and the user has to scroll to see all the three items. I'd like to adjust the height of the list such that all three items can be seen at once.
I already tried to increase ItemHeight, but this also increases the height of the text box area of the combo box, and this shall not happen.
Thanks a lot for any suggestions!