Solved

RichTextBox

Posted on 2004-04-05
1
415 Views
Last Modified: 2008-02-01
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
Comment
Question by:mfazi
1 Comment
 
LVL 1

Accepted Solution

by:
Arrummzen earned 50 total points
ID: 10755476
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Please explain purpose of GZIP 4 59
C# Linq Select From List 3 45
Trying to understand what this mean...types(lstTypes[i].AvailableDatatype) 2 27
C# XML Get Values 4 35
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question