Hello to all. There is a listbox . It is necessary to enter the data in the listbox . Why not that value is added.
Create an object
class1 s1 = new class1("exampleText");
Then I add an instance of the class to the list .
List<class1> st = new List<class1>(); st.Add(s1);
After that, application1.class1 is added to the listBox instead of "exampleText".
listBox1.Items.Add(s1);