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

Can you display a value in a listbox in particular color

Status
Not open for further replies.

colezpapa3

Programmer
Dec 8, 2007
73
US
I have a listbox and I would like to display a line in a different color depending on the value. My listbox is loaded via query. Is there a way to get control of each line.
 
Don't think so. Your only choices I think for the display you are looking for you only have a listview control or represent the listbox by a continuos form and use conditional formatting. Maybe someone can confirm this for you, just popped in.
 

Conditional Formatting is available for comboboxes but not for listboxes, and I know of no code hack for this. Listboxes are really meant for selecting data as opposed to displaying data, hence the lack of formatting capability.

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top