12
Answers

Displaying multicoloured text in a label

Umar Anjum

Umar Anjum

10y
1.6k
1
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)
Next Recommended Forum