ArizonaRedneck
Programmer
I've got a rich text box in a vb.net windows form. When the page loads I call the "LoadFile" method to populate it with a .rtf file. This works just fine. My problem is when I try to do a replace function to replace *Name with variable text in order to make it dynamic (i.e. Replace(RichTextBoxPrintCtrl1.Text, "*Name", "Bob Dole"). The text shows up with the correct name (Bob Dole) instead of *Name, however... the formatting of all of the text is completely gone! how can I replace the text but keep the formatting?