I thought this would be very easy, so it either isn't or I am so overworked I cannot see it.
What I would like to do is:
I have a listview, multiselect = true, checkboxes = true, fullrowselect = true.
I also have a button on the form (this is Winforms by the way). When user selects/deselects an item or items, I would like to put a check (checked = true) on all the items the user selected and uncheck all unselected then enable or disable the button (btnOk) on the form depending whether there are items in the selection/checked collection or not. Similarly user can use the checkboxes, in that case I would select (selected = true) all items the user checked and unselect all unchecked then do the same as above for the button.
That make sense? Shouldn't be hard but the selectedindices and checkedindices seems to be incorrect (probably cos I am not doing something right).