• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1200
  • Last Modified:

Change the Text of a ListBox Item?

HI,

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?

Ingo
0
Ocrana
Asked:
Ocrana
  • 3
1 Solution
 
Jaime OlivaresCommented:
are you working with MFC's CListView? could you post some code where to make modifications?
0
 
OcranaAuthor Commented:
Hi, no I use CListBox
0
 
Jaime OlivaresCommented:
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
0
 
Jaime OlivaresCommented:
Do you have choosen an alternative?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now