// Détection si il y a plusieurs Genres sélectionnés if (listGenres.SelectedItems.Count > 1) { // Définition du premier argument Genre lesGenres = "'" + listGenres.SelectedItems[0].ToString() + "'"; MessageBox.Show("PLOP"); //MessageBox.Show("PLOP" + listGenres.SelectedItems[0].ToString()); // Parcours des autres arguments OR Genre = 'plop' OR Genre = 'plop2' ... for (int i = 1; i <= listPlaylists.SelectedItems.Count; i++) { lesGenres = lesGenres + " OR Genre = '" + listGenres.SelectedItems[i].ToString() + "'"; } MessageBox.Show(lesGenres); }