I would like to deselect the last selected index if the user already selected more than 3 items (Only allow user to remove selections).
sender.selectedIndex
returns the first selected listbox item and not the last (chronologically) one. Does anyone have any tips how I could achieve this?
example (* selected)
item1
*item2
item3
*item4
item5
if I select item3 then sender.selectedIndex
contains item2 (first item) and sender.selectedItems
contains item2,item3,item4 so I can't tell which one is new.