How to Make the drop-down menu rise to the top instead of descending down in compobox
Printable View
How to Make the drop-down menu rise to the top instead of descending down in compobox
I don't know the answer to your question but, as noone else has answered either, I'll provide what information I can. There is no public interface in the ComboBox class to do that, e.g. there is no DropDownDirection property. The drop-down list will automatically display above the control if there is not enough room on the screen to display it below. If you want to force that behaviour then you'd have to inherit the ComboBox class and do it yourself. I'm not sure how it would be done but I would guess that it would involve trapping one or more Windows messages in an overridden WndProc method. Working out if that is the case and which message(s) to trap may not be easy.
As JMcIlhinney said, there is no built-in DropDownDirection property. You'll have to create it in an inherited class. Here is a class by JuggaloBrotha that is a MenuButton, it's similar to what you want, but in more of a button style as opposed to a combobox style.
thanks