TwoWing
Well-known member
Hello. I have this code for finding a string in a RichTextBox -
- how can I change the code so that every occurence of the text is changed as well? Thank you.
VB.NET:
Public Sub SelectMyString()
rtbWord.Find(TextBox1.Text, RichTextBoxFinds.MatchCase)
rtbWord.SelectionFont = New Font("Verdana", 12, FontStyle.Bold)
rtbWord.SelectionColor = Color.Red
End Sub