ok I am not new to c# but there must be an answer to this one... I am stumped!
The story so far ... I wanted to do have email functionality in my program, so after looking around I finally went for a VERY basic RichTextBox with an attached hand made rtf->(BASIC) html converter that sends the simple edits as HTML for my customers to write emails ... I want to write html very basically and for my needs my RichTextBox works fine ... with one problem
The only feature I am missing is Hyperlinks. And its MISSION CRITICAL. The nearest I can get is to do a "DetectUrl" work alike, where I physically screen the rtf for a string beginning "http://blah
" and then I enclose that in a link in my HTML. It is a bad halfway house though. The PROBLEM is that I can't see an easy way of "combining" the Url behind some "link text"
a) what I want to make : <a href="http://www.mypage.com
b) what I can do easily (from rtf text "http://www.mypage.com
") : <a href="http://www.mypage.com
I am stuck, I fear I have to disbale DetectUrls, go DEEP into rtf and somehow add comments (possibly) that can't bee seen in the box the user sees in but are pseudo written as "underlined in blue" and then I am terrified of mucking about that much. the user if he ever editted round such text would maybe make a RIGHT mess.. Is there anyone who has done this before? Is there an "easy" way of doing this? Should I be using RichTextBox's at all? I want html really, I only used rtf becaus eits there and its free.
Am I making any sense?