Hello,
Do you mean when you update something, the ListView's items content should be changed accordingly?
When you call ListView.Refresh method, it does force ListView to repaint. But if you don't change the content of these items, it will remain unchanged.
According to your code, I think "colorAlreadyUsed" is the color represent the used items and "colorNotUsed" represent unused items. After the loop, these item's color have been set. Then the first item of ListView always show "colorCurrentlySelected". Right? You can try to call lstInput.Refresh at the end of repaintInputControl method. Does it work?
Sincerely,
Kira Qian
Please remember to mark the replies as answers if they help and unmark them if they provide no help. Welcome to the
All-In-One Code Framework!