由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - listbox 的问题
相关主题
一个dropdownlist的问题drawing in c#
image with RadioButtonList c#谁来说说Firefox的download manager
Can Gnome storage compete with WinFScontrol array in .net
如何去处web browser的scrollbar?C#的更高境界
mCustomScrollbar can not scroll to a wide width in ChromeLinqPad is handy
visual studio为什么不加eclipse修改建议的功能小菜鸟求助,PDF header signature not found
[转载] treeview in Internet Explore Web Control菜鸟继续问:how to update sql db entry, or create if not exist ?
那个Control可以做这个事情?问个问题
相关话题的讨论汇总
话题: listbox话题: item话题: listitem话题: vertical话题: bar
进入DotNet版参与讨论
1 (共1页)
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.

1 (共1页)
进入DotNet版参与讨论
相关主题
问个问题mCustomScrollbar can not scroll to a wide width in Chrome
HttpWebRequest小程序visual studio为什么不加eclipse修改建议的功能
关于SqlDataAdapter的初级问题求助[转载] treeview in Internet Explore Web Control
一个xml的问题。那个Control可以做这个事情?
一个dropdownlist的问题drawing in c#
image with RadioButtonList c#谁来说说Firefox的download manager
Can Gnome storage compete with WinFScontrol array in .net
如何去处web browser的scrollbar?C#的更高境界
相关话题的讨论汇总
话题: listbox话题: item话题: listitem话题: vertical话题: bar