Different Colors in List Boxes...?

  • Thread starter Thread starter tantiboh
  • Start date Start date
T

tantiboh

I'd like to affect specific items in a List Box. In other words, I'd like to take any one (or more) elements of the List Box Collection and, say, turn it red, or turn it bold.

Anybody know how to do this?

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Take a look at the DrawMode and ItemHeight properties along with the
DrawItem event. One way is to set the DrawMode to OwnerDrawFixed then set
the ItemHeight property to the height in pixels of each row. In the
DrawItem event you do all of your custom painting on the provided Graphics
object.

Robby
 
Back
Top