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.
Printable View
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.
Nevermind, I got it.
Code:If Me.ListView1.SelectedIndices.Count > 0