Solved

List Box with Colored Text?

Posted on 2003-11-06
3
516 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 AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

831 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