Click here to Skip to main content
15,921,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Combobox.MaxDropDownItems property doesn't make any effect in the drop down items.

But if
C#
Application.EnableVisualStyles();
is commented in the Main() method then MaxDropDownItems works.

How can I solve it without commenting Application.EnableVisualStyles();

Developement environment:

C#.Net 4

Windows XP sp3 /windows 7
Posted

1 solution

Have a look at this thread. Even though it's VB, could it be that you're having the same problem: http://social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/96f50070-b75a-493a-b4ae-d90e7096dbe8[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900