Is there a way to set a specific color for each line in a label

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matt753
    New Member
    • May 2010
    • 91

    Is there a way to set a specific color for each line in a label

    Is there any way to change the colors of different lines in a label/textbox?

    For example, the default text color is black. I want to have the first line of the label text black, the second red, then set it back to black for the last one.

    Reason i'm trying to do this is I have a calendar form, with boxes (labels) for each day of the month. Each day will have a few items on it, and I want to be able to control the colors so I can make important tasks stand out from the regular black ones.

    OR is there a better way to do what i'm trying to accomplish?
  • Stewart Ross
    Recognized Expert Moderator Specialist
    • Feb 2008
    • 2545

    #2
    The color of the label text or of a textbox and its background can be changed, but not of parts of the text within it.

    The normal way to do what you wish to do is to use a separate label or textbox for each component of the form, so that under programme control the relevant part of the form can be highlighted accordingly.

    -Stewart

    Comment

    Working...