Question Vista Combo Box diplay problem

CodyB

Active member
Joined
Jul 23, 2007
Messages
26
Programming Experience
3-5
I'm using Visual Studio 2005. I've been using my program in XP and in XP it works just like I expect it to. But Vista is treating my combo boxes differently. I have the following properties set:
DropDownStyle=DropDownList
MaxDropDownItems=17

This control is filled with 40+ items so it comes up with a vertical scrollbar. In XP this ComboBox will show exactly 17 items below the control. In Vista this "DropDown" starts at the top of the screen and shows me at least 24 items. I'm not sure how many more it's trying to display because the vertical scrollbar is cutoff by the bottom of the screen. I wouldn't mind the new display method if it would at least stay on the screen.

Can anybody suggest a fix for this?
 
Back
Top