-
according to the help files it looks like i can do inline RTF(rich text format) codes in my strings to change colors
for example
rtfText.text= "this should be the default color and \cf1This should be blue"
i figure something is probably wrong with my escape sequence, or that this can't be done this way at all.
thanks for any input
-
forgot to mention
\cf1
is for color foreground, the 1 is the equiv to vbBlue
-
Wrong Property
If you set the Text property, the contents of the string is displayed exactly the way you typed it. You have to use the TextRTF property if you want the Rich textbox to use the tags for formatting.
Regards
Shrog
-
if i do this
txtActivityLog.TextRTF = "\cf1hi"
it still results in plain black text (should be blue)
am i missing to other characters in the RTF escape sequence?
many thanks