listbox selected color

bjwade62
02-18-2005, 08:26 AM
I have a list box that works with a timer. As the items in the list are processed the selected property is set to true. It all works fine but I hate the color. Is there a way (in code) to change the color without changing the entire windows color scheme?

Thanks,
Bernie

Squishy
02-18-2005, 08:52 AM
See if you can set a ForeColor property. When you set it, you can use VB color constants instead of hex values (e.g. vbBlue, vbRed, vbBlack, etc).

bjwade62
02-18-2005, 09:09 AM
Thanks for the suggestion. I tried it but all the forecolor will change is the font color. I'm looking to have the color of the selection indicator change color not the font forecolor or the backcolor.

Thanks again,
Bernie

See if you can set a ForeColor property. When you set it, you can use VB color constants instead of hex values (e.g. vbBlue, vbRed, vbBlack, etc).

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum