format text in combobox

striker

Useless and getting worse
Local time
Today, 20:07
Joined
Apr 4, 2002
Messages
65
Is it possible to format the colour of the text in a combobox. I want to use the colour of the text as a flag for priorities of task ie red for high, yellow for medium and green for i'll do it sometime. Ive tried using fontcolor but it doesn't seem to work, the only action I seem to be able to get to work is forecolor, which to say the least doesn't look very professional.

Any suggestions gratefully accepted.
 
You can set a text box's text color as follows:

MyTextBox.ForeColor = [some long integer value]

To get an idea of what the numeric value is for each of your desired colors, simply go into the Properties window, manually select each color for this property, and note what the resulting value is. Then use the code snippet above to change the color as needed.
 
You can also set the Forecolor in the Property list. In Design View, double-click on the control in question, then find forecolor on the Format page of the property list. Select it, then click on the "..." box, and you'll be able to select a most wonderful color.

Take care to select only good colors.

-Curt
 

Users who are viewing this thread

Back
Top Bottom