Link to home
Start Free TrialLog in
Avatar of vlg
vlg

asked on

List Box with Colored Text?

Hello,

I'd like a control that acts like a list box, but I'd like to have two different color fonts:

This line should be blue
     This should be normal
     This is normal, too
     This is also normal
This is another blue line
     And this is back to normal
     More normal color
     Also normal color

I've seen some examples on the Web, but they're very involved -- 60kb projects, with multiple .bas files, etc, etc.  If that's the only way, no thanks, I'll just have one text color.

If someone knows of an easy way, perhaps another control that is a superset of the listbox, or a 3rd party control, I'd like to learn about it.

Thanks for any help

v
Avatar of craduza
craduza

why don't u use the rich text box? u can add the rich text box by adding rich text component. use the rich textbox control 6.0...hope this will help u
ASKER CERTIFIED SOLUTION
Avatar of fantasy1001
fantasy1001

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vlg

ASKER

craduza -- If I click on a line of text in a rich text box, what happens?  
Right now, I have listbox_click  function which gets the index of the line that was clicked on from the list box, and does something different depending on which line was clicked.    If I replace the llistbox with a rich text box, how will I do that?

fantasy1001, I'm looking at it now.  It's a modified picture box, but he seems to make it do all the necessary things.  I'll try it out now and let you know.