Hello,
I want to make a richtextbox what can show you diffrent colors.
I've already managed how to give 1 line a special color, but I want to know how to give everyword in a sentence a diffrent color.
as example in a line on my textbox:
Hello World, I want to show this diffrent colors in my richtextbox - who knows how to make it?
This is the code I have to color just once line of the textbox.
How do I give everyword in a richttextbox a diffrent color?Code:Private Sub AddText(ByVal Text As String, ByVal Color As Drawing.Color) With txtChat .SelectionColor = Color .AppendText(Text) End With End Sub




Reply With Quote