|
-
Nov 15th, 2000, 12:27 PM
#1
Thread Starter
Lively Member
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
-
Nov 15th, 2000, 12:28 PM
#2
Thread Starter
Lively Member
forgot to mention
\cf1
is for color foreground, the 1 is the equiv to vbBlue
-
Nov 15th, 2000, 12:48 PM
#3
Addicted Member
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
-
Nov 15th, 2000, 02:40 PM
#4
Thread Starter
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|