Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Line color

Status
Not open for further replies.

funkyyuzzam

Programmer
Aug 12, 2002
10
GB
Hi Guys

can you help me.

I need to make lines different colors when printing to a listbox in a form.

I dont ned the code to print tp the listbox, I have done that OK. i just need to make each of these lines a different color.

Any help appreciated.

Print #1, "01"; Space(10); "Endurance " & Training - 3 & " Hours"
Print #1, "02"; Space(10); "Endurance " & Training - 2 & " Hours"
Print #1, "03"; Space(10); "Recovery Ride " & Recovery
Print #1, "04"; Space(10); "Intensity " & Training - 2 & " Hours"
Print #1, "05"; Space(10); "Recovery Ride " & Recovery


Funky
 
Have you done a search in this forum for this? I know it's been covered several times recently.

If you search, you'll find a hack that more-or-less makes it work.

Your alternative is to use either:
1. A bought in listbox control (there is loads if you search Google)
2. A RichTextbox
3. MSFlexgrid
4. A homebrew control based on RTB or FlexG Let me know if this helps
________________________________________________________________
If you are worried about how to post, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top