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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wordwrap

Status
Not open for further replies.

jonnyknowsbest

Technical User
Feb 3, 2004
163
GB
I have a rich text box with wordwrapping enabled. When a user clicks on a button, the text is copied from rich text box, into a standard textbox.

Now i need to be able to add formatting tags such as <RED> and <BLUE> to the textbox, but maintain where the lines are broken. Example

Richtext box wrapped text
=========================

The cat sat(<--Line wraps here)
on the mat



Textbox wrapped text
====================
The cat <RED>sat
on the map


Any ideas how i can achieve this??

I did think of replacing the wordwrap character with a Chr(13) but i don't know the word wrap character.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top