Hi, i have un listview in a winform, multiselect = true. I would like to know which is the last item to select when it several item selected there.
Best regards.
Sylvain
ListViewItem item;
if ( listview1.SelectedItems.Count > 0 )
item = listview1.SelectedItems[ listview1.SelectedItems.Count-1 ];
That should get you the last selected item.
Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com
>Hi, i have un listview in a winform, multiselect = true. I would like to know which is the last item to select when it several item selected there.
>
>Best regards.
>Sylvain