22-07-19, 11:31 PM
بهذه الطريقة
كود :
RichTextBox1.SelectAll()
RichTextBox1.SelectionBackColor = Color.White
For Each x As Match In Regex.Matches(RichTextBox1.Text, TextBox1.Text)
RichTextBox1.Select(x.Index, x.Length)
RichTextBox1.SelectionBackColor = Color.Yellow
Next