Listview get currently selected item

Chris Ara
08-17-2006, 07:31 PM
Is there a way to get the currently selecteditems text for a listview. I'm using vb 2005 and I don't see how to get a listview currently selecteditem. Someone please help me

Thanks for any help
Chris Ara

akrocks
08-17-2006, 09:28 PM
listbox1.SelectedIndex

Chris Ara
08-18-2006, 05:58 AM
I'm working with a listview not a listbox , but thanks anyways.

mdusoe
08-18-2006, 10:37 AM
ListView1.SelectedItems

You will always get an array of all selected items, so if you know that there is only one allowed (i.e. MultiSelect is False), then you would need to get ListView1.SelectedItems(0)

HTH,
Mike.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum