M
M
Maria2018-05-04 23:31:49
C++ / C#
Maria, 2018-05-04 23:31:49

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?
5aecc2ab2a361860824710.png
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 question

Ask a Question

731 491 924 answers to any question