hi all
i am using
but i want to know how to find the number of line that contain my search result?
i am using
VB.NET:
For Each line As String In Me.RichTextBox1.Lines
If line.Contains(TextBox1.Text) Then
RichTextBox1.Select(startindex, line.Length)
TextBox2.Text = RichTextBox1.SelectedText
End If
startindex += line.Length + 1
Next
but i want to know how to find the number of line that contain my search result?