• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 145
  • Last Modified:

use two colors for listbox items

I have a listbox displaing two types of strings.  And I'd like to color code them.

Can I do this in a listbox?  If so, how?  Can I use reverse video?

Or must I use a ListView for this?

Please advise...

1 Solution
Bob LearnedCommented:
I guess from the reference to ListView that you are talking about WinForms controls.  The ListBox won't let you color text natively, but the ListView will.

newbiewebSr. Software EngineerAuthor Commented:
Thanks Bob
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now