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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combobox Selected Item - Change Forecolor

Status
Not open for further replies.

a75537

Programmer
Feb 26, 2003
25
CA
Hi all,

I have a combobox with a list of items that I loop through, and when a condition is met I want to change the forecolor of the item in the combobox that meets the condition.

For example - my combobox has 10 items, and 3 of the items match a criteria - I want these 3 items to appear in Red, and the other 7 items to remain the default text color - Black.

Changing the ForeColor property for the combobox changes every item's ForeColor - how can I change the ForeColor for specific items in the list?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top