I am totally new in visual basic and have got desperately stuck for 4 hours with this problem which I bet is very stupidly simple.
The simple program loads a .rtf file in a rich text box and using a textbox and a button, I have to search the worlds in that file.
The Find button uses this code.
Private Sub btnFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Click rtfWindChill.Find(txtFind.Text, RichTextBoxFinds.MatchCase) End Sub
So this basically finds the first instance of the searched word and highlight but I have to find all the occurrence and highlight it. I guess there would be some sort of loop here but after going around google for hours, I am hopeless and have come to my last refugee. So any ideas would be hugely appreciated. Thank you.