问题描述
我有一个ToolStrip
,用户可以从众多选项中进行选择,例如我们40名左右的员工之一.由于表单上的空间限制,我宁愿使用ToolStripDropDownButton
而不是ToolStripComboBox
.
我可以很好地填充按钮的下拉菜单,但是有40个条目,列表有点长,我需要实现的其他一些按钮将有数十种选择.我一直在尝试找到某种可滚动的下拉菜单,类似于组合框上的下拉菜单,但看起来像一个下拉菜单,无济于事.我在Code Project和Google周围进行了搜索,但是那里也没有运气.
在我放弃之前,我希望其他CPer可能有一些建议.
I have a ToolStrip
from which the user can select from a large number of options, such as one of our 40 or so employees. Because of space restrictions on the form, I would prefer to use a ToolStripDropDownButton
rather than a ToolStripComboBox
.
I can populate the button''s drop-down just fine, but with 40 entries, the list is a tad long, and some of the other buttons I need to implement will have dozens of choices. I have been trying to find some kind of scrollable drop-down, similar to the one on the combo box but looking like the a drop-down menu, to no avail. I have searched on Code Project and around Google, but no luck there, either.
Before I give up, I''m hoping a fellow CPer might have some suggestions.
推荐答案
这篇关于带有可滚动下拉菜单的ToolStripDropDownButton?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!