i have a string say
string str="this is test string";
what i want is that when i show the str as label text than half of string color should be in red and rest half in blue.
str text is dynamic
how can i do this
Showing string text in two diffrent color
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Krishna GaradRank #191 · 12.8K reputationPosted Jan 12, 2012, 8:14 PM EST
first you need to break the string in two parts
part1="some text";
part2="sometext";
then you can write like this
Lable1.Text += "" + part1 + " "+"
nishant ranjanRank #4,961 · 317 reputationPosted Jan 12, 2012, 11:54 PM EST
Krishna GaradRank #191 · 12.8K reputationPosted Jan 13, 2012, 12:09 AM EST