Solved

List Box with Colored Text?

Posted on 2003-11-06
3
518 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…

792 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