how can i set different color to string in an array of string
as he wants an array of colors in a string. Now to set "hi" to red in a RichTextBox, when you add the text to it you will have to sets its font color then
Sorry, I read this:
hemakumar, on 13 May, 2008 - 08:03 AM, said:
str --> in red color
str --> in blue color
and i am using ritchtextbox to display the string array
As wanting strings to have color.
hemakumar, a string is a simple value, it has no color property. You could make a class to pair up a string value and a color value for rendering in a rich text box. The control itself has the color. e.g.