If you don't have knowledge of C#, why're you reading this? If you do have knowledge of C#, then maybe you can help me.
Here's the problem: I'm trying to get the selected items of a ListView with Contains( ), and IndexOf( ). However, I don't know how to use them. Also, MSDN doesn't help all that much( doesn't provide examples of Contains( ), and IndexOf( ) ).
Thanks for the reply, WebJose. However, I replaced SelectedIndices with SelectedItems as you said, and it gives me this error:
Cannot implicitly convert type 'System.Windows.Forms.ListView.SelectedListViewItemCollection' to 'System.Windows.Forms.ListView.SelectedIndexCollection'
What I meant: Instead of using SelectedIndices and looping through the collection of Items (ListView.Items), the property SelectedItems automatically gives you the Items so you don't need to look them up by index.