54:
Can I display an icon file as picture and icon as well

exhtml1.set_HTMLPicture("icon",(exhtml1.ExecuteTemplate("loadpicture(`gAAAABgYACAQgUCEAANAEgQWhIohMIhUJgkLhIAIEOjMdj0Cf8hAMhf8jkUkk0llEJGMJGcumECl8ymIAmc2lkonUnnkqkS3Qosea2QIkf61P4go5/" +
"D9LptIp9MpdKolGoFCnc+rUpri2QQlklhsVjsllqr/lk1m9rly1QAisTqbq6f7qbi4f7obKzf7na6xf7mayvwLWV1iqD/q9DotTp2PWh+Dz/WZ7DT/WB3CWYO2bXaKGV" +
"1u99v+FwjlaqssWRydnsuv2FiWB2CD/fj7ej/fL0dL/fDyc2+eTl1eSx9hwWHwWEczXWGB52mwuHsKuOgO3z1c7/ejubj/ebsbPgdjY4uT1li1Gq5fS9vt9di63Yezwb" +
"z/eLoaL/eDmZr+HO/6wvS9Kwt+4jfuCfB5u3BcGuA4TiOq678HUaZ/nueJyNikJaD+9DjLC8LxxG8htPJEjxPI80Juwd5yGOsRnlWNp/lYOACsQt5/wKkj8me/B0GhIM" +
"hngc8gP6/8jQEkj5n+dZvF4sUbxysJ2G4YjFEGE5Wx6kJ2nHGMwGQf8wRi+pww4zgIzVK8srcERTpRL0nm7KR1m6Xsnm4XcZRpG0cLEWY+g4o5ABCx04S1LisgCxKwnO" +
"bDAUjSborDKixSuYZ/q8ExS0bUCegC101NhN1DTjUKt1UAJckOFp3rOxMCONDynx2W8tmrVleVEkC0AAkNf2HYNgWFYtiWPZVjWZZNmICA`)") as Object));
exhtml1.Images("gBJJgBggAAwAAgACEKAD/hz/EMNh8TIRNGwAjEZAEXjAojJAjIgjIBAEijUlk8plUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9oEEwGBwWDwMZGMZGeIxUYxOMxYAxuQw1+ykswmXzCuPwpea2QIkf61P4g0J/D+l0+i" +
"1Om0ukz2gzWcyuzk+Y22CWyCEsT3m932/h+vf+04kaw+O5GS5IzWqAEW8dTdXT/dTcXD/dDZWb/c7XWL/czWV/gayu3mq4fF2exzuf1uo+C0Pwef6zPYaf6wO4S/J2/h" +
"dkUGTqOs7jvPI8ZymqVjePk+j1Nm4TgQlCaHFgOwIH+fh9nof58nodJ/nweRzRCeRywY+b0wevz0Im8LzPC8ZzGuWDwRpA7yPMiZXDoB0Qnqc5/nodxuH+eZ2GzIx2Gx" +
"FEHRWv0Gt5BMFxjHEqyrKbeR5Hx7Hgbx/nidBon+eBzGbMhzzOicoyfKEUonEUTxFEh8HnIM6zvEcSxPHcezAdRpn+e54nJCh/loP8nTavcoonI8k0fJRtSVSEkSVJk+" +
"x8d5yGO3hnlWNp/lYOACvO50VUWvNGofMJnzAdBoVfWJ4HPV0yzPWk1IfLZ/nWbxeN5UdSomdhuGIf4+CwDRW1TRk3oedpx07aJkH/aNOy6cNDQsCNDWLY47CmCxTsLZ" +
"tVWehx1m7YF1F7XpuF3T1QVFUjeFmPoONCQAQve5rn2TZbL3MvMWoec5sO/g+ExuidhN5Yphn+OoqAwUrb4ukmBrvCNDQlb5/3DceMZHjONLqVo/BUd7hPRKOXNZfx/k" +
"wNoQGrkmb5Lky5oqHyVZ6jqPpCkYAZyjGipoh+daUo6Ag");
exhtml1.Text = "As Picture: <img>icon</img><br>As Icon:     <img>1</img>";

53:
How do I show a gradient text

exhtml1.Text = "first line<br>second line<br>third line";
exhtml1.SelStart = exhtml1.get_XYToPosition(0,1);
exhtml1.SelLength = 11;
exhtml1.HideSelection = false;
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatFont,"Tahoma");
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatFontSize,32);
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatGradient,255);
exhtml1.SelLength = 0;

52:
How can I programmatically change the font

exhtml1.Text = "first line<br>second line<br>third line";
exhtml1.SelStart = exhtml1.get_XYToPosition(0,1);
exhtml1.SelLength = 11;
exhtml1.HideSelection = false;
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatFont,"Tahoma");
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatFontSize,32);
exhtml1.SelLength = 0;

51:
How can I programmatically change the selection's foreground color
exhtml1.Text = "first line<br>second line<br>third line";
exhtml1.SelStart = exhtml1.get_XYToPosition(0,1);
exhtml1.SelLength = 11;
exhtml1.HideSelection = false;
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatForeColor,255);
exhtml1.SelLength = 4;
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatForeColor,"");
System.Diagnostics.Debug.Print( exhtml1.get_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatForeColor).ToString() );
exhtml1.SelLength = 0;

50:
How can I programmatically resizes a picture
exhtml1.set_HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
exhtml1.Text = "first line<br>second line<br>third line";
exhtml1.HideSelection = false;
exhtml1.SelStart = exhtml1.get_XYToPosition(0,1);
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatImage,"pic1");
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatImageSize,64);
exhtml1.SelLength = 0;

49:
How can I programmatically inserts an icon/picture

exhtml1.set_HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
exhtml1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
exhtml1.Text = "first line<br>second line<br>third line";
exhtml1.HideSelection = false;
exhtml1.SelStart = exhtml1.get_XYToPosition(0,1);
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatImage,1);
exhtml1.SelStart = exhtml1.get_XYToPosition(1,1);
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatImage,"pic1");
exhtml1.SelLength = 0;

48:
How can I programmatically inserts a line

exhtml1.Text = "first line<br>second line<br>third line";
exhtml1.SelStart = exhtml1.get_XYToPosition(0,1);
exhtml1.HideSelection = false;
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatLine,1);

47:
How can I programmatically format the selection

exhtml1.Text = "first line<br>second line<br>third line";
exhtml1.SelStart = exhtml1.get_XYToPosition(0,1);
exhtml1.SelLength = 11;
exhtml1.HideSelection = false;
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatBold,true);
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatAlign,1);
System.Diagnostics.Debug.Print( exhtml1.get_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatBold).ToString() );
exhtml1.SelStart = exhtml1.get_XYToPosition(0,2);
exhtml1.SelLength = -1;
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatUnderline,true);
exhtml1.set_FormatSelection(exontrol.EXHTMLLib.HTMLFormatEnum.exHTMLFormatAlign,2);

46:
How can I select the text giving (column,line)-coordinates
exhtml1.Text = "This sample shows how to select the text giving (column,line)-coordinates.<br>This is the second line";
exhtml1.SelStart = exhtml1.get_XYToPosition(0,1);
exhtml1.SelLength = 4;
exhtml1.HideSelection = false;

45:
How can I determine the (column,line)-coordinates of the cursor's position
// SelChange event - Occurs when the user selects text in the control.
private void exhtml1_SelChange(object sender)
{
	System.Diagnostics.Debug.Print( "Column" );
	System.Diagnostics.Debug.Print( exhtml1.get_PositionToX(exhtml1.CursorPos).ToString() );
	System.Diagnostics.Debug.Print( "Line" );
	System.Diagnostics.Debug.Print( exhtml1.get_PositionToY(exhtml1.CursorPos).ToString() );
}
//this.exhtml1.SelChange += new exontrol.EXHTMLLib.exg2antt.SelChangeEventHandler(this.exhtml1_SelChange);

exhtml1.WordWrap = true;
exhtml1.Text = "This sample shows how to determine the <b>(column,line)</b> - coordinates.";

44:
How can I provide my own context menu

// ExecuteContextMenu event - Occurs when the user selects an user item from the control's context menu.
private void exhtml1_ExecuteContextMenu(object sender,string Item,int Position)
{
	System.Diagnostics.Debug.Print( "You selected: " );
	System.Diagnostics.Debug.Print( Item.ToString() );
	exhtml1.SelText = Item.ToString();
}
//this.exhtml1.ExecuteContextMenu += new exontrol.EXHTMLLib.exg2antt.ExecuteContextMenuEventHandler(this.exhtml1_ExecuteContextMenu);

exhtml1.Text = "This is a bit of <b>HTML</b> text. Right-click the text.";
exhtml1.ContextMenuItems = "1,2,3,others[id=0](4,5,6) ";

43:
How can I change the context menu's visual appearance

exhtml1.WordWrap = true;
exhtml1.Text = "This sample show change the visual appearance of the built-in context menu";
exhtml1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
exhtml1.set_Background32(exontrol.EXHTMLLib.BackgroundPartEnum.exContextMenuAppearance,0x1000000);
exhtml1.set_Background32(exontrol.EXHTMLLib.BackgroundPartEnum.exContextMenuSelBackColor,0x10000ff);

42:
How can I insert my own HTML words to the control's context menu

exhtml1.WordWrap = true;
exhtml1.Text = " <off 5><font ;7><fgcolor 808080>sub-note</fgcolor></font></off> This is just a bit of text <off -5><font ;7><fgcolor 808080>su" +
"per-note</fgcolor></font></off> ";
exhtml1.ContextMenuItems = "<off 5><font ;7><fgcolor 808080>sub-note</fgcolor></font></off>[id=57763],<off -5><font ;7><fgcolor 808080>super-note</fgcolor>" +
"</font></off>[id=57763]";

41:
When I use the context menu to insert an image, the size seems to be fixed to 32 pixels. How can I control / change this

exhtml1.set_HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
exhtml1.set_HTMLPicture("pic2","c:\\exontrol\\images\\auction.gif");
exhtml1.set_HTMLPicture("pic3","c:\\exontrol\\images\\colorize.gif");
exhtml1.WordWrap = true;
exhtml1.Text = "The text displays pictures <img>pic1:32</img>,..., <img>pic2:32</img>.<br><b>1.</b> Select a single picture, right click to res" +
"ize it<br><b>2.</b> Right click to insert a new picture";
exhtml1.ContextMenuItems = "Size[id=57680][edittype=515][border=0][min=16][max=128][freq=16][editwidth=-128][ticklabel=value = %i ? '<b>'+value : ( value =" +
" vmax ? '<fgcolor 808080><font ;6><b>'+value : ( value = vmin ? '<fgcolor 808080><font ;6><b>'+value : '' ) )],Insert[group=3](<" +
"img>pic1:32</img>[id=57763],<img>pic2:32</img>[id=57763],Others[id=1000](default[group=3](<img>pic3</img>[id=57763]),<font ;6>ot" +
"her sizes[sep],<img>pic3:16</img>[id=57763],<img>pic3:32</img>[id=57763],<img>pic3:64</img>[id=57763]))";

40:
How can I programatically selects the entire text

exhtml1.HideSelection = false;
exhtml1.WordWrap = true;
exhtml1.Text = "<b>Job</b><br>/jäb/<br><br><i>noun</i><br><b>1.</b> a paid position of regular employment.<br><b>2.</b> a task or piece of work" +
", especially one that is paid.";
exhtml1.SelStart = 0;
exhtml1.SelLength = -1;

39:
How can I search for an exacting word

exhtml1.HideSelection = false;
exhtml1.WordWrap = true;
exhtml1.Text = "<b>Class</b><br>/klas/<br><br><i>noun</i><br><b>1.</b> a set or category of things having some property or attribute in common " +
"and differentiated from others by kind, type, or quality.<br><br><b>2.</b> the system of ordering a society in which people are " +
"divided into sets based on perceived social or economic status.";
exhtml1.Find("differentiated",exontrol.EXHTMLLib.HTMLEditFindOptionEnum.exHTMLEditMatchWholeWordOnly);

38:
How can I search for a string

exhtml1.HideSelection = false;
exhtml1.WordWrap = true;
exhtml1.Text = "<b>Class</b><br>/klas/<br><br><i>noun</i><br><b>1.</b> a set or category of things having some property or attribute in common " +
"and differentiated from others by kind, type, or quality.<br><br><b>2.</b> the system of ordering a society in which people are " +
"divided into sets based on perceived social or economic status.";
exhtml1.Find("different",exontrol.EXHTMLLib.HTMLEditFindOptionEnum.exHTMLEditSearchDown);

37:
I am using the ScrollBars property on 0, but the control is not scrolling anymore. What can be done

exhtml1.SingleLine = true;
exhtml1.Text = "This is a <b>long text</b> that should make the control to display the horizontal scroll bar.";
exhtml1.ScrollBars = exontrol.EXHTMLLib.ScrollBarsEnum.exBoth;
exhtml1.ScrollWidth = 0;
exhtml1.ScrollHeight = 0;

36:
How can I force the control to display a single-line only

exhtml1.SingleLine = true;
exhtml1.Text = "This is the first line<br>This is the second line";

35:
How can I replace the text with HTML formatting

exhtml1.WordWrap = true;
exhtml1.Text = "This is a bit of text";
exhtml1.set_CursorText(10,3,false,"<dotline><gra FFFFFF;0;1><font ;12>... this is a HTML replacement ...</font></gra></dotline>");

34:
How can I insert HTML text (method 2)

exhtml1.Text = "This is a simple text.";
exhtml1.set_CursorText(0,0,false,"<b><dotline>Inserted by code</dotline></b>. ");

33:
How can I insert HTML text (method 1)

exhtml1.Text = "This is a simple text.";
exhtml1.SelStart = 0;
exhtml1.SelLength = 0;
exhtml1.SelText = "<b><dotline>Inserted by code</dotline></b>. ";

32:
How can I add/append HTML text (method 2)

exhtml1.Text = "This is a simple text.";
exhtml1.set_CursorText(-1,0,false," <b><dotline>Added by code</dotline></b>.");

31:
How can I add/append HTML text (method 1)

exhtml1.Text = "This is a simple text.";
exhtml1.SelStart = -1;
exhtml1.SelLength = 0;
exhtml1.SelText = " <b><dotline>Added by code</dotline></b>.";

30:
How can I replace the text with no HTML formatting

exhtml1.WordWrap = true;
exhtml1.Text = "<font ;12>This is a <fgcolor FF0000> bit </fgcolor> of <b><fgcolor 808080><u>HTML</u></fgcolor></b> text";
exhtml1.set_CursorText(11,3,null,"... this is a plain replacement ...");

29:
Is there any property or method that gets the entire text with no HTML formatting

exhtml1.WordWrap = true;
exhtml1.Text = "<font ;12><sha  ;;0>This is a bit of <b><fgcolor 808080><u>HTML</u></fgcolor></b> text.";
System.Diagnostics.Debug.Print( exhtml1.get_CursorText(0,-1,true) );

28:
How can I get the selection as plain text with no HTML formatting

// SelChange event - Occurs when the user selects text in the control.
private void exhtml1_SelChange(object sender)
{
	System.Diagnostics.Debug.Print( exhtml1.get_CursorText(exhtml1.SelStart,exhtml1.SelLength,true) );
}
//this.exhtml1.SelChange += new exontrol.EXHTMLLib.exg2antt.SelChangeEventHandler(this.exhtml1_SelChange);

exhtml1.WordWrap = true;
exhtml1.Text = "<font ;12><sha  ;;0>This is a bit of <b><fgcolor 808080><u>HTML</u></fgcolor></b> text. Select a portion of text and you will g" +
"et the text with no HTML formatting.";

27:
How can I customize the pictures in the control's context menu

exhtml1.set_HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
exhtml1.set_HTMLPicture("pic2","c:\\exontrol\\images\\auction.gif");
exhtml1.set_HTMLPicture("pic3","c:\\exontrol\\images\\colorize.gif");
exhtml1.WordWrap = true;
exhtml1.Text = "The text displays pictures <img>pic1:32</img>,..., <img>pic2:32</img>.<br><b>1.</b> Select a single picture, right click to res" +
"ize it<br><b>2.</b> Right click to insert a new picture";
exhtml1.ContextMenuItems = "Size[id=57680][edittype=515][border=0][min=16][max=128][freq=16][editwidth=-128][ticklabel=value = %i ? '<b>'+value : ( value =" +
" vmax ? '<fgcolor 808080><font ;6><b>'+value : ( value = vmin ? '<fgcolor 808080><font ;6><b>'+value : '' ) )],Insert[group=3](<" +
"img>pic1:32</img>[id=57763],<img>pic2:32</img>[id=57763],Others[id=1000](<img>pic3:32</img>[id=57763]))";

26:
How do I show a tooltip

// MouseMove event - Occurs when the user moves the mouse.
private void exhtml1_MouseMoveEvent(object sender,short Button,short Shift,int X,int Y)
{
	exhtml1.ShowToolTip("Just a short tooltip",null,null,null,null);
}
//this.exhtml1.MouseMoveEvent += new exontrol.EXHTMLLib.exg2antt.MouseMoveEventHandler(this.exhtml1_MouseMoveEvent);

exhtml1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
exhtml1.set_Background32(exontrol.EXHTMLLib.BackgroundPartEnum.exToolTipAppearance,0x1000000);

25:
Is it possible to assign a tooltip for items in the control's context menu

exhtml1.Text = "This is a bit of <b>HTML</b> text. Select and right-click the selection.";
exhtml1.ContextMenuItems = "<font ;18><b>B[id=57648][typ=1][align=1][show=1][ttp=Bolds/Unbolds the selection]";

24:
How do I get the selected text

// SelChange event - Occurs when the user selects text in the control.
private void exhtml1_SelChange(object sender)
{
	System.Diagnostics.Debug.Print( exhtml1.SelText );
}
//this.exhtml1.SelChange += new exontrol.EXHTMLLib.exg2antt.SelChangeEventHandler(this.exhtml1_SelChange);

exhtml1.Text = "Press the <b>CTRL + S</b> or <b>CTRL + F</b> to search for text.";

23:
Is there any way to search through the text

exhtml1.Text = "Press the <b>CTRL + S</b> or <b>CTRL + F</b> to search for text.";
exhtml1.AllowFind = true;
exhtml1.AllowIncrementalSearch = true;

22:
The selection is not shown when the control loses the focus. Is it possible to highlight the selection while the control has no focus

exhtml1.Text = "<font ;12>This is a bit of <b>HTML</b> text.";
exhtml1.HideSelection = false;
exhtml1.SelStart = 0;
exhtml1.SelLength = -1;
exhtml1.SelBackColorHide = Color.FromArgb(255,0,0);

21:
Does your control support Find/Replace

exhtml1.Text = "This is a bit of <b>HTML</b> text.";
exhtml1.AllowFind = true;
exhtml1.AllowReplace = true;

20:
How can I get the current selection

// SelChange event - Occurs when the user selects text in the control.
private void exhtml1_SelChange(object sender)
{
	System.Diagnostics.Debug.Print( exhtml1.SelText );
}
//this.exhtml1.SelChange += new exontrol.EXHTMLLib.exg2antt.SelChangeEventHandler(this.exhtml1_SelChange);

exhtml1.Text = "This is a bit of <b>HTML</b> text.";

19:
I've noticed that the text does not start exactly where the control is. How can I adjust/remove that margin

exhtml1.Text = "This is a bit of <b>HTML</b> text.";
exhtml1.BorderWidth = 0;
exhtml1.BorderHeight = 0;

18:
How can I center the text

exhtml1.Text = "<c>This is a bit of centered <b>HTML</b> text.";

17:
How can I align the text to the right

exhtml1.Text = "<r>This is a bit of <b>HTML</b> text, aligned to the right.";

16:
How can I turn on the control's OLE Drag and Drop operation
exhtml1.Text = "This is a bit of <b>HTML</b> text.";
exhtml1.OLEDropMode = exontrol.EXHTMLLib.exOLEDropModeEnum.exOLEDropAutomatic;

15:
Does your control support word-wrap, and if so how can I enable it

exhtml1.Text = "This is a bit of <b>HTML</b> text. This is a bit of <b>HTML</b> text. This is a bit of <b>HTML</b> text. This is a bit of <b>HT" +
"ML</b> text. This is a bit of <b>HTML</b> text.";
exhtml1.WordWrap = true;
exhtml1.LineNumberWidth = -1;
exhtml1.DrawGridLines = true;

14:
Can I edit text with no formatting at all

exhtml1.Text = "This is a bit of <b>HTML</b> text.";
exhtml1.EditType = exontrol.EXHTMLLib.HTMLEditTypeEnum.exPlainText;

13:
I've noticed that pressing the CTRL+B changes the Bold attribute. Can I change that behavior
exhtml1.Text = "This is a bit of <b>HTML</b> text.";
exhtml1.AllowShortcutFormat = false;

12:
How do I prevents shown the control's content menu

exhtml1.Text = "This is a bit of <b>HTML</b> text.";
exhtml1.AllowContextMenu = exontrol.EXHTMLLib.HTMLEditContextMenuEnum.exHideContextMenu;

11:
How do I make the control read-only

exhtml1.Text = "This is a bit of <b>HTML</b> text.";
exhtml1.BackColorLocked = exhtml1.BackColor;
exhtml1.ForeColorLocked = exhtml1.ForeColor;
exhtml1.Locked = true;
exhtml1.ShowCaret = false;

10:
Can I replace programatically a portion of text

exhtml1.Text = "This is a bit of <b>HTML</b> text.";
exhtml1.SelStart = 0;
exhtml1.SelLength = 1;
exhtml1.HideSelection = false;
exhtml1.SelText = "<fgcolor FF><font ;18>T</font></fgcolor>";

9:
How do I select the entire text programatically

exhtml1.Text = "This is a bit of <b>HTML</b> text.";
exhtml1.SelStart = 0;
exhtml1.SelLength = -1;
exhtml1.HideSelection = false;

8:
How do I programatically add text to the control

exhtml1.Text = "This is a bit of <b>HTML</b> text.";
exhtml1.SelStart = -1;
exhtml1.SelText = " <fgcolor FF0000><b>Inserted Text</b></fgcolor>";

7:
How do I programatically insert text to the control

exhtml1.Text = "This is a bit of <b>HTML</b> text.";
exhtml1.SelText = "<fgcolor FF0000><b>Inserted Text</b></fgcolor> ";

6:
How do I get the unformatted text

// SelChange event - Occurs when the user selects text in the control.
private void exhtml1_SelChange(object sender)
{
	System.Diagnostics.Debug.Print( exhtml1.get_CursorText(exhtml1.SelStart,exhtml1.SelLength,null) );
}
//this.exhtml1.SelChange += new exontrol.EXHTMLLib.exg2antt.SelChangeEventHandler(this.exhtml1_SelChange);

exhtml1.Text = "This is a bit of <b>HTML</b> text.";

5:
How do I provide my own menu for my images (emotion icons)

exhtml1.Text = "<img>1</img> Right click the image <img>pic1</img> to get resized.";
exhtml1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
exhtml1.ContextMenuItems = "Insert[group=3](<img>1</img>[id=57763],<img>2</img>[id=57763])";

4:
How do I display images inside text

exhtml1.set_HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
exhtml1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
exhtml1.Text = "<img>1</img> Right click the image <img>pic1</img> to get resized.";

3:
How do I allow types only to be available on the control's context menu

exhtml1.Text = "Right click the selection.";
exhtml1.HideSelection = false;
exhtml1.SelStart = 16;
exhtml1.SelLength = 9;
exhtml1.AllowContextMenu = exontrol.EXHTMLLib.HTMLEditContextMenuEnum.exContextMenuFormatStrikeout | exontrol.EXHTMLLib.HTMLEditContextMenuEnum.exContextMenuFormatUnderline | exontrol.EXHTMLLib.HTMLEditContextMenuEnum.exContextMenuFormatItalic | exontrol.EXHTMLLib.HTMLEditContextMenuEnum.exContextMenuFormatBold;

2:
How do I programatically select the text

exhtml1.Text = "<font ;12>This is a bit of <b>HTML</b> text.";
exhtml1.HideSelection = false;
exhtml1.SelStart = 0;
exhtml1.SelLength = -1;

1:
How do I assign a text to the control

exhtml1.Text = "This is a bit of <b>HTML</b> text.";