Thread: listbox
View Single Post
Old 10-15-2004, 01:41 AM   #6 (permalink)
RobertStout
Registered User
 
RobertStout's Avatar
 
Join Date: Oct 2004
Location: Dank cellar
Posts: 18
RobertStout is on a distinguished road
:rock:

Code:
Color myColor = Color.Red;
myListBox.ForeColor = myColor;
myListBox.Items.Add("Red Text");
Strings don't have a color property, instead set the forecolor property on the listbox itself.
RobertStout is offline   Reply With Quote