Sample Output

The following shows an example of some XHTML elements, which end users can create using the WYSIWYM UI:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
  <title></title>
 </head>
 <body>
  <h1>Sample programs</h1>
  <h2>Support</h2>
  <p>Please post a message on the <a href="http://groups.google.com/group/modeltext">ModelText discussion group</a> to say whether you like this software, to make suggestions, to ask questions, and any/or for bug reports.</p>
  <h2>How to</h2>
  <p>Here are some notes about how I wrote the sample programs (for example, the FileOpenAndSave project):</p>
  <ul>
   <li>Use Visual Studio to create a new, empty Windows Forms Application.</li>
   <li>Use the Visual Studio Designer, to design the layout of the form: the form for this example project simply includes one application menu strip, plus a panel on which the ModelText HTML control is superimposed at run-time. Also use the Visual Studio Designer to define the menu items, and to declare the events handlers which implement each menu item.</li>
   <li>Read <a href="http://www.modeltext.com/html/apis/Index.html">APIs for the HTML Control</a> for a description of how to use the ModelText HTML control, and add the corresponding statements to the Form1.cs source file.</li>
  </ul>
  <h2>List of samples</h2>
  <p>There are two sample programs:</p>
  <table>
   <tr>
    <td>FileOpenAndSave</td>
    <td>This program shows how to include the following functionality: 
     <ul>
      <li>Load and save a document</li>
      <li>Implement the 'Save' and 'Insert Hyperlink' commands</li>
     </ul>
    </td>
   </tr>
   <tr>
    <td>FormControls</td>
    <td>This program shows how to display a form, and get the contents of the form controls when the user clicks the submit button.</td>
   </tr>
  </table>
  <p></p>
 </body>
</html>

The following is an example of what this content might look like, when the user sees it in the WYSIWYM UI (depending on what CSS you might associate with the control).

Sample programs

Support

Please post a message on the ModelText discussion group to say whether you like this software, to make suggestions, to ask questions, and any/or for bug reports.

How to

Here are some notes about how I wrote the sample programs (for example, the FileOpenAndSave project):

  • Use Visual Studio to create a new, empty Windows Forms Application.
  • Use the Visual Studio Designer, to design the layout of the form: the form for this example project simply includes one application menu strip, plus a panel on which the ModelText HTML control is superimposed at run-time. Also use the Visual Studio Designer to define the menu items, and to declare the events handlers which implement each menu item.
  • Read APIs for the HTML Control for a description of how to use the ModelText HTML control, and add the corresponding statements to the Form1.cs source file.

List of samples

There are two sample programs:

FileOpenAndSave This program shows how to include the following functionality:
  • Load and save a document
  • Implement the 'Save' and 'Insert Hyperlink' commands
FormControls This program shows how to display a form, and get the contents of the form controls when the user clicks the submit button.

.NET Components

About Us

News Summary

August 2012
New Product Roadmap.
October 2011
"Finally, a 100% managed .NET code HTML renderer. Only 6 years after I originally wanted it..."
February 2011
New Support and Licensing.
October 2010
Recent comments include:
"nice work. thanks"
"This component works fine."
"this is a fantastic control!"
August 2010
Also released a CSS Parser and Doc to HTML Converter.
June 2010
See Release notes for further updates.
June 2010
Added the Download page.
January 2010
First version of this web site.