M
M
Maxim K2020-05-15 19:52:20
C++ / C#
Maxim K, 2020-05-15 19:52:20

How to remove information from rows in listbox?

Hello.
I enter the data in the listbox from xml:

listBox7.Items.Clear();
            XDocument X = XDocument.Load(@"c:\Users\MAKSIM\source\list.xml");
            // var CDsIn1985 = X.Element("users").Elements("radiostation").Where(E => E.Element("country").Value == "Россия");
            var selectCountry = X.Element("users").Elements("radiostation").Where(E => E.Element("country").Value == filterCountryPanel.SelectedItem.ToString());

            foreach (var item in selectCountry)
            {
                // Console.WriteLine(String.Format("Title : {0}, Artist : {1}", item.Element("TITLE").Value, item.Element("ARTIST").Value));
                listBox7.Items.Add(item.Element("title").ToString());
            }


Lines in the listbox appear like this: name1 name2
How
to

remove all these ?

Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question