Answer the question
In order to leave comments, you need to log in
How can I change the name of a list item in a listbox?
How to make it so that in the listbox on clicking on the button changes are immediately displayed?
The elements of the list are objects. In the list (lbItems) I display the names of these objects (property name) When I click on the Edit button, I change this property for the selected object. But these changes are not immediately visible.
How to make it so that in the listbox on clicking on the button changes are immediately displayed?
((Album)lbItems.SelectedItem).name = "I was changed";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question