Solved

List Box with Colored Text?

Posted on 2003-11-06
3
515 Views
Last Modified: 2012-05-04
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
0
Comment
Question by:vlg
3 Comments
 
LVL 1

Expert Comment

by:craduza
ID: 9698316
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
0
 
LVL 5

Accepted Solution

by:
fantasy1001 earned 250 total points
ID: 9698383
0
 

Author Comment

by:vlg
ID: 9702805
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now