I add the melon box to the sheet via the data source. In case of multiple selection, it is necessary to add it to the collection. When outputting, we get the same value a couple of times
List<string> comission = new List<string>(); for (int i = 0; i < listBox2.Items.Count; i++) { if (listBox2.GetSelected(i) == true ) { comission.Add(listBox2.SelectedValue.ToString()); ; } } foreach (string ar in comission) { label3.Text += ar + "\n"; }