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

RichTextBox to HTML conversion

Status
Not open for further replies.

Schroeder

MIS
Sep 25, 2001
382
US
I'm basically using a RichTextBox to create an email client that will send HTML messages. I've seen several solutions for converting the contents of a RichTextBox into HTML. The process of generating the various tags based on the font characteristics of the text seems straightforward enough.

I need to provide the user with the ability to embed links in their text. They're going to highlight a piece of text then specify a link for it. I'm looking for suggestions on how to keep track of those links so they can be written into the HTML when the user is done composing their message.

My current best solution is to assign unique colors to each link.. colors that are not available to the user for regular (non-linking) text. I would keep a running index with each color's link address. I don't like this plan but it's all I've got right now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top