string text = "Red color Green color"; text = text.Replace("Red", "<span style='color:red'>Red</span>"); text = text.Replace("Green", "<span style='color:green'>Green</span>"); lbl.Text = text;
myLabel.Text = "red!"; myLabel.ForeColor = Color.Red;
myLabel.Text = "green!"; myLabel.ForeColor = Color.Green;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)