In VB.Net, is it possible to highlight ALL instances of a phrase instead of only a single instance of it, for example:
txtView.SelectionStart = txtView.Find("ERROR: Invalid command entered.")
txtView.SelectionColor = Color.Red
This would highlight "ERROR: Invalid command entered.", however if my RichTextBox text is:
ERROR: Invalid command entered. < Only this line will highlight
ERROR: Invalid command entered.
ERROR: Invalid command entered.
Alternatively, is there a way I can simply colour the line when I write it to the RichTextBox? Thanks in advance!