Can somebody show me using two different colors in a rich textbox. For example I would like the ouput in the textbox look like this:
This is red
This is green
Printable View
Can somebody show me using two different colors in a rich textbox. For example I would like the ouput in the textbox look like this:
This is red
This is green
Are there specific, consistent sentences/phrase that you would like to change to red and green?
Take a look at this post and the The Project
VB Code:
With RTB .Text = "" 'add red text .SelColor = vbRed .SelText = "This is Red" & vbCrLf 'add green text .SelColor = vbGreen .SelText = "This is green" & vbCrLf End With
thanks moeur
Actually Hack, althought it is not what I was aking for, I'd like to learn how to change a specific part in the RTB(and also how to change the color), while the following sentences are constant and unknown.
Is this another question?