PDA

Click to See Complete Forum and Search --> : [RESOLVED] ListView SelectedItem


wileyj
Apr 9th, 2007, 09:55 AM
I'm using the .Net Compact Framework 1.1.

I am wondering how to check if an item is selected in a listview. When the user hits the "Select" button I want to first check and make sure there is an item selected or else it will give them an error.

wileyj
Apr 9th, 2007, 10:00 AM
Nevermind, I got it.

If Me.ListView1.SelectedIndices.Count > 0