avatar
d*g
1
1.如何让vertical scrolling bar 不出现?
2.如何用foreach 或其他简单的方法得到每个item的值?我用了很笨的办法,每个item
setSelected.
谢了
avatar
b*e
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.
: 谢了

avatar
d*g
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)
: }

avatar
b*e
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

avatar
m*t
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。