Different Colors in List Boxes...?

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...
 
R

Robby

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top