I am running a index search on a string in a rich textbox, i have a list of keywords which need to be a different color in this textbox. how do i run a search on a string in vb2005 and get a list of indexes where the text matched my search?
Share
Here is a fairly simple solution. Note that it will find the word “our” in “Four”. If that is not desirable you can write something to eliminate overlapping matches.