Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing colors in a listbox

Status
Not open for further replies.

bouwob

Programmer
Apr 12, 2006
171
US
I have a listbox populated with several different items. The problem I am having though is how to I change a certain items text color in the list box and not effect all of the other items????
 
Use a listview instead.

ListViewItem item = listview1.Items[0];

item.BackColor = Color.Blue;
item.ForeColor = Color.Pink;


ListView's kick ListBox's butt!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top