Solved

List Box with Colored Text?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 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

12 Experts available now in Live!

Get 1:1 Help Now