Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OwnerDrawVariable ComboBox - change DropDown list height?

Status
Not open for further replies.

kittyyo

Programmer
Oct 17, 2001
89
0
0
AT
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top