ComboBox MaxDropDownItems属性不起作用 [英] ComboBox MaxDropDownItems property doesn't work

查看:575
本文介绍了ComboBox MaxDropDownItems属性不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Combobox.MaxDropDownItems属性对下拉项没有任何作用.

但是,如果在Main()方法中对

Combobox.MaxDropDownItems property doesn''t make any effect in the drop down items.

But if

Application.EnableVisualStyles();

进行注释,则MaxDropDownItems可以使用.

我如何解决而不评论Application.EnableVisualStyles();

开发环境:

C#.Net 4

Windows XP sp3/windows 7

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

推荐答案

看看这个线程.即使是VB,也可能是您遇到了同样的问题:
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[^]


这篇关于ComboBox MaxDropDownItems属性不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆