12
Answers

Displaying multicoloured text in a label

Umar Anjum

Umar Anjum

11y
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)
-3
Satyapriya Nayak
NA 53k 8m 12y
http://www.codeproject.com/Articles/354702/WPF-Slideshow
http://www.c-sharpcorner.com/uploadfile/dpatra/making-an-image-slideshow-in-wpf-part-i/
http://www.c-sharpcorner.com/uploadfile/prvn_131971/image-slideshow-in-wpf/
Next Recommended Forum