d**g 发帖数: 6 | 1 1.如何让vertical scrolling bar 不出现?
2.如何用foreach 或其他简单的方法得到每个item的值?我用了很笨的办法,每个item
setSelected.
谢了 |
b*e 发帖数: 3845 | 2
i think the vertical scrolling bar will automatically appear if the
height of the items is larger thean the height of the listbox.
foreach (ListItem item in aListBox.Items)
{
... = item.Text (or item.Value)
}
【在 d**g 的大作中提到】 : 1.如何让vertical scrolling bar 不出现? : 2.如何用foreach 或其他简单的方法得到每个item的值?我用了很笨的办法,每个item : setSelected. : 谢了
|
d**g 发帖数: 6 | 3
is there any way to get rid of it?
或其他简单的方法得到每个item的值?我用了很笨的办法,每个item
I did this way before,but it seems there is no ListItem namespace in C#.NET.
Thanks
【在 b*e 的大作中提到】 : : i think the vertical scrolling bar will automatically appear if the : height of the items is larger thean the height of the listbox. : foreach (ListItem item in aListBox.Items) : { : ... = item.Text (or item.Value) : }
|
b*e 发帖数: 3845 | 4
How do you feel if there is an item you can't see and can't select from
the listbox?
Dude, you got to double check what namespace ListItem is in and use it.
【在 d**g 的大作中提到】 : : is there any way to get rid of it? : 或其他简单的方法得到每个item的值?我用了很笨的办法,每个item : I did this way before,but it seems there is no ListItem namespace in C#.NET. : Thanks
|
m******t 发帖数: 2416 | 5
I guess the OP knows the number of items can't be more than the listbox can
display, and doesn't want the disabled vertical scroll bar at all.
【在 b*e 的大作中提到】 : : How do you feel if there is an item you can't see and can't select from : the listbox? : Dude, you got to double check what namespace ListItem is in and use it.
|