if (ListBox1.Items.Count > 0) { for (int i = 0; i < ListBox1.Items.Count; i++) { if (ListBox1.Items[i].Selected) { string selectedItem = ListBox1.Items[i].Text; string selectedValue = ListBox1.Items[i].Value; //insert into array or something else... } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)