Change the Text of a ListBox Item?


In my Listbox I have from time to time a changed value. Is it possible to change the text of a ListBox Item, like index 2 by code?

Who is Participating?
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
Unfortunately, there is not such feature with regular listboxes. You have 2 choices.
- Delete and insert an item again
- Use owner draw to change the text whenever you want
Jaime OlivaresSoftware ArchitectCommented:
are you working with MFC's CListView? could you post some code where to make modifications?
OcranaAuthor Commented:
Hi, no I use CListBox
Jaime OlivaresSoftware ArchitectCommented:
Do you have choosen an alternative?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.