Hi
How can i change the color of a string in a listbox. for example i want the 3th Item in the listbox to turn red when i press a buton.
Greetings Maxim
Printable View
Hi
How can i change the color of a string in a listbox. for example i want the 3th Item in the listbox to turn red when i press a buton.
Greetings Maxim
hi,
Follow this link
good luck
It makes you wonder why they dont have a simple property like that for the listbox.
Have you considered the Listview ?, that control does have the simple property and can be used easily like this
ListView1.Items(2).ForeColor = Color.Red
Casey.
Yes, it would have been nicer if most controls had properties like that so you can easily color individual items.
Anyways, using ownerdrawing is the way to go. The posted link should get you started. You can also search the Forums too as we have code examples all over.