- Joined
- Jun 22, 2008
- Messages
- 12
- Reaction score
- 0
Anyway I'm looking for a way to change text color, for instance if it contains "value" then I need the text to turn blue. So far I have this: but is there any other way?
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If (RichTextBox1.Text.Contains("value]")) Then
RichTextBox1.SelectionStart = RichTextBox1.Find("value")
Dim theColor As System.Drawing.Color
theColor = Color.Blue
RichTextBox1.SelectionColor = theColor
End If
End Sub

