c0rrupt Posted May 9, 2005 Share Posted May 9, 2005 Is there any I can do something like this? RTB.Text = RTB.TextRTF & vbCrLf & "<color=Red> <b> Loading Game </b> </color>" I know the formatting strings probably wouldn't look so HTML'ish, but you get the idea. Link to comment https://www.neowin.net/forum/topic/318504-vb6-adding-formatted-text-to-a-rich-text-box/ Share on other sites More sharing options...
0 headkaze Posted May 12, 2005 Share Posted May 12, 2005 Dim szColorTable As String szColorTable = "{\colortbl;" szColorTable = szColorTable & "\red255\green0\blue0;" ' red szColorTable = szColorTable & "\red0\green255\blue0;" ' green szColorTable = szColorTable & "\red0\green0\blue255;" ' blue szColorTable = szColorTable & "}" RTB.TextRTF = "{" & szColorTable & "\b \cf1 Loading Game\cf0 \b0 \n }" Link to comment https://www.neowin.net/forum/topic/318504-vb6-adding-formatted-text-to-a-rich-text-box/#findComment-585910523 Share on other sites More sharing options...
Question
c0rrupt
Is there any I can do something like this?
RTB.Text = RTB.TextRTF & vbCrLf & "<color=Red> <b> Loading Game </b> </color>"
I know the formatting strings probably wouldn't look so HTML'ish, but you get the idea.
Link to comment
https://www.neowin.net/forum/topic/318504-vb6-adding-formatted-text-to-a-rich-text-box/Share on other sites
1 answer to this question
Recommended Posts