asp.net怎么让listbox产生水平滚动条
第1个回答 2014-06-23
没有其它的办法可以吗?貌似3.5里可以设置下面的代码示例演示如何使用 HorizontalScrollbar 和 HorizontalExtent 属性来显示用于在 ListBox 控件中显示所有项文本的水平滚动条。该示例还使用 IntegralHeight 属性以确保不会因为 ListBox 控件的大小而不能完整地显示项。此示例要求已将名为 listBox1 的 ListBox 控件添加到窗体中。[ol][*]private void DisplayHScroll()[*]{[*]? ?// Make no partial items are displayed vertically.[*]? ?listBox1.IntegralHeight = true;[*][*]? ?// Add items that are wide to the ListBox.[*]? ?for (int x = 0; x 查看原帖>>本回答被提问者采纳