Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rich text box

Status
Not open for further replies.

ArizonaRedneck

Programmer
Oct 25, 2004
61
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top