Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have simple comboBox with 3 different entries. When the user selects one of the entries, i would like to have it diplayed as a different color but for only one of the possible selections.

Assume i have those 3 items as possible selection in the combo box,

Apples
Bananas
Oranges

If the user selects Apple/oranges, i would like the combo box to behave normally, but if the user selects Banana, i would like to change the backgroung color to red for example once the selection is made..

is there an easy way?

Regards,
Posted

1 solution

One way is to handle OnCtlColor.Refer the following link,(Perticularly Remarks column).
http://msdn.microsoft.com/en-us/library/0wwk06hc%28v=vs.80%29.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900