I'm trying to save a ListView
selected item and I don't know why I'm getting this error:
"Cannot implicitly convert type 'int' to 'System.Windows.Forms.ListView.SelectedListViewItemCollection'"
I tried this code on the save button:
Settings.Default["SelectedDevice"] = sourceList.SelectedItems; //Works fine
on Form_Load I tried this:
sourceList.SelectedItems = (int)Settings.Default["SelectedDevice"]; //error