lothos12345
Junior Contributor
Using Visual Basic.NET I am trying to locate the inputposition of a particuliar string in a RichTextBox. This string can be located anywhere. The document I am searching is in an rtf format. The problem is that I can get the input position of the string in the rtf however when I try to replace it the string the input position is no longer correct. Because the replace looks at the document in a plain text format not an rtf format thus the input position is incorrect. I need to keep the format of the original rtf. Not sure what to do. Any help offered is greatly appreciated.