Umar Anjum

Umar Anjum

  • NA
  • 43
  • 3.4k

Displaying multicoloured text in a label

Feb 2 2014 2:59 PM
Basically, I want a label to display the result in a different colour. At the moment the program simply outputs a message along with a variable, what i want to do is have the variable in a different colour to the text. E.g. my variable is called InterestToBePaid of the type float, the current code is:
lblInterestToBePaid1Year.Text = "The Total Interest You Have To Pay For One Year Is: " + InterestToBePaid;
 
How would I change  InterestToBePaid in to a different colour?

Answers (12)