• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 429
  • Last Modified:

RichTextBox

Hi,
    Can some one tell me how i can get the HTML code for the richTextBox.
I explains you my problem i have made a form which sends email. I have add few options like change color, Bold, Heading levels etc.

Please help me how i will be abel to get HTML code from richtextBox.


Thanks in advance.
With best regards fazi
0
mfazi
Asked:
mfazi
1 Solution
 
ArrummzenCommented:
By deffinition doesn't a RichTextBox use Rich Text Format, not Hyper Text Markup Language?

You could use a AxSHDocVw.AxWebBrowser control, and then set the contents using -
mshtml.IHTMLDocument2 myDoc = (mshtml.IHTMLDocument2)myRendering.Document;
myDoc.body.innerHTML = "test"; // Your HTML

Thank you for your time,
Arrummzen
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now