To loop selected items in a listbox (try not to use object class)
List<object> selectedList = new List<object>();
for (int i = 0; i < LstMyListBox.SelectedItems.Count; i++)
{
selectedList.Add((object)LstMyListBox.SelectedItems[i]);
}
Does that help?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.