How do开发者_运维知识库 I select an selected index in a listview in visual studio?
You can use ListView.SelectedItems property if you are not using checkboxes. http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.selecteditems.aspx
You can use ListView.Checkedindices propery if you are using checkboxes. http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.checkedindices(v=vs.71).aspx
精彩评论