2009-09-01 80 views

回答

4

是否ListBox.SelectedItems不是你想要什么?

for (object x in listBox.SelectedItems) 
{ 
    // Do something with the selected item 
} 

您也可以使用ListBox.SelectedIndices

+0

我想在列表框中显示一个一个的值(仅限于选定的值) – Nagu 2009-09-01 12:45:28

+0

@Nagu:你遇到什么问题? – 2009-09-01 12:45:50

+0

我想显示列表框的选定值的值 – Nagu 2009-09-01 12:47:17