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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Krishna GaradPosted Jan 13, 2012, 1:14 AM
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 ranjanPosted Jan 13, 2012, 3:22 AM