Am I missing something here?
I can’t find the SelectedItems property on ListBox control. I’m trying to loop through the selected items in it. And yes, property SelectionMode is set to multiple, not that it matters.
Why can’t I ‘see’ the property?
It does exist but is marked with
so IntelliSense won’t show it to you, but you can use it anyways.
A proper solution that also works for the ASP.NET
System.Web.UI.WebControls.ListBoxwould be: