|
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
IntroductionThis Rich Text Editor-style control comes from a reference of the "Body Editor" in
"New Message" dialog of Outlook Express.
As we know, although a Inside HTMLTextBoxAs a subclass of How to enable the WebBrowser to be editable?The
webBrowserBody.Document.ExecCommand("EditMode", false, null);
How to overstrike your fontPerform the following code to enable the BOLD font on the selected characters.
webBrowserBody.Document.ExecCommand("Bold", false, null);
All the operations in this control are executed by invoking the function
PS: As announced by Microsoft in Command Identifiers, some of the Commands are mentioned to be no more applicable, however, they still work well. Please do not rely it 100 percent, just give a shot! About Optional Fonts
foreach (FontFamily family in FontFamily.Families)
{
toolStripComboBoxName.Items.Add(family.Name);
}
All the optional fonts in this control are retrieved by means of the code above. About Font SizeIn HTML page, seven types of font size are applicable (from 1 to 7). And the relationship between the HTML font size and the common font size is summarized in the following table:
To avoid confusion, the Common Font Size will display for users instead of the HTML Font Size. How to use HTMLTextBoxAs a
NOTE: the COM object "Microsoft HTML Object Library" will be referenced by About SampleEmail Sender Example
Before running Sample, the following code needs to be changed accordingly. In lines 23 - 26 in MailSender.cs
string host = "192.168.22.12";
int port = 25;
string userid = "jay.liu";
string password = "1111";
Loathsome BUGThe image inserted into the edit body cannot be resized, and no exception will be thrown. For now, I have no idea about the reason or solution. HistoryFirst Version (1/22/2007).
|
||||||||||||||||||||||||||||||||||||||