# Document Editor

> Build a VB6 word processor with TXTextControl: files, formatting, styles, sections, tables, images, fields, track changes, protection, XML and printing.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > Document Editor
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/document-editor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/document-editor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/document-editor/llms-full.txt

---

## On This Page

- [How the Editor Works](https://docs.textcontrol.com/tx-text-control-activex/document-editor/#how-the-editor-works)
- [Find the Right Page](https://docs.textcontrol.com/tx-text-control-activex/document-editor/#find-the-right-page)
- [Where to Start](https://docs.textcontrol.com/tx-text-control-activex/document-editor/#where-to-start)
- [Pages in This Section](https://docs.textcontrol.com/tx-text-control-activex/document-editor/#pages-in-this-section)

---

## In This Section

- [Comments](https://docs.textcontrol.com/tx-text-control-activex/document-editor/comments/llms.txt): Insert, edit, reply to and delete comments in a TXTextControl document with VB6, list them in a window and choose how commented text is highlighted.
- [Built-In Dialog Boxes](https://docs.textcontrol.com/tx-text-control-activex/document-editor/dialog-boxes/llms.txt): Open the dialog boxes built into TXTextControl from VB6: Font, Paragraph, Tabs, lists, styles, page setup, tables, images, form fields and find and replace.
- [File Drag and Drop](https://docs.textcontrol.com/tx-text-control-activex/document-editor/drag-drop/llms.txt): Handle WM_DROPFILES by subclassing: load or insert dropped files at the drop point with InputPosFromPoint and Load, and insert images with ObjectInsertAsChar.
- [Selections, Clipboard and Undo](https://docs.textcontrol.com/tx-text-control-activex/document-editor/editing/llms.txt): Select text and move the input position in VB6, run cut, copy and paste, undo and redo edits, group undo steps, search text and switch overwrite mode.
- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms.txt): Insert, find, change, protect and delete marked text fields in TXTextControl with FieldInsert, FieldCurrent, FieldText and FieldNext, and handle field events.
- [Footnotes](https://docs.textcontrol.com/tx-text-control-activex/document-editor/footnotes/llms.txt): Insert, edit, number, find and delete footnotes in a TXTextControl document with VB6: FootnoteInsert, number formats, highlighting and footnote lists.
- [Form Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/form-fields/llms.txt): Insert text, check box, combo box, drop-down and date form fields in VB6, open FormFieldDialog, read what users entered and protect the rest of the form.
- [Character and Paragraph Formatting](https://docs.textcontrol.com/tx-text-control-activex/document-editor/formatting/llms.txt): Format text in VB6 with TXTextControl: fonts, bold, colors, alignment, indents, line spacing, tabs and paragraph frames, plus the Font and Paragraph dialogs.
- [Headers and Footers](https://docs.textcontrol.com/tx-text-control-activex/document-editor/headers-footers/llms.txt): Add, activate and remove headers and footers with HeaderFooter, HeaderFooterActivate and HeaderFooterStyle, and change their text with HeaderFooterSelect.
- [Using Images](https://docs.textcontrol.com/tx-text-control-activex/document-editor/images/llms.txt): Insert images anchored, as a character or fixed with ImageInsert, embed or link image data, and open the Image Attributes dialog with ObjectAttrDialog in VB6.
- [Bulleted and Numbered Lists](https://docs.textcontrol.com/tx-text-control-activex/document-editor/lists/llms.txt): Create bulleted, numbered and structured lists in VB6 with ListType, BulletAttribute and NumberingAttribute, change list levels and open ListAttrDialog.
- [Working With Files](https://docs.textcontrol.com/tx-text-control-activex/document-editor/load-save/llms.txt): Load and save RTF, HTML, XML, DOCX, DOC, text and the native format with TXTextControl, export PDF, and write file headers or several controls to one file.
- [Printing](https://docs.textcontrol.com/tx-text-control-activex/document-editor/printing/llms.txt): Print with PrintDoc or page by page with PrintPage and PrintDevice, switch paper bins for letterhead and preview pages in a Picture Box with PrintZoom.
- [Document Properties](https://docs.textcontrol.com/tx-text-control-activex/document-editor/properties/llms.txt): Set and read title, subject, author, keywords and creation and modification dates of RTF, DOC and DOCX documents with the LoadSaveAttribute property.
- [Document Protection](https://docs.textcontrol.com/tx-text-control-activex/document-editor/protection/llms.txt): Protect documents with EditMode and a password in VB6, set document permissions, mark editable regions for users and check what the user may change.
- [Sections and Page Setup](https://docs.textcontrol.com/tx-text-control-activex/document-editor/sections/llms.txt): Insert section breaks and set page size, margins, orientation, columns, page borders and page numbering per section in VB6, with SectionFormatDialog.
- [Signature Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/signature-fields/llms.txt): Insert signature fields with SignatureFieldInsert in VB6, store the suggested signer, add a signature image and sign the fields when saving as PDF.
- [Spell Checking](https://docs.textcontrol.com/tx-text-control-activex/document-editor/spell-checking/llms.txt): Underline misspelled words in VB6 with the SpellCheckText event, check them with TX Spell .NET and correct them from a context menu or spelling dialog.
- [Stylesheets](https://docs.textcontrol.com/tx-text-control-activex/document-editor/stylesheets/llms.txt): Create, apply and change paragraph and character styles in VB6 with the Style object, the Styles collection and StyleDialog, and react to style changes.
- [Tables of Contents](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables-of-contents/llms.txt): Generate a table of contents from structure levels with TableOfContentsDialog, then update, change and delete it in VB6 as the TXWords sample does.
- [Tables](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/llms.txt): Insert tables with TableInsert or Load from RTF and HTML, select and delete rows, open TableAttrDialog, check TableCanInsert and resize cells with the ruler.
- [Using Text Frames](https://docs.textcontrol.com/tx-text-control-activex/document-editor/text-frames/llms.txt): Insert text frames with TextFrameInsert, open their settings with ObjectAttrDialog and fill labels with ObjectNext and TextFrameSelect in Visual Basic 6.
- [Button Bar, Ruler Bar and Status Bar](https://docs.textcontrol.com/tx-text-control-activex/document-editor/toolbars/llms.txt): Connect TXButtonBar, TXRulerBar and TXStatusBar to TXTextControl in VB6, arrange buttons and status fields, set up both rulers and show or hide the bars.
- [Track Changes](https://docs.textcontrol.com/tx-text-control-activex/document-editor/track-changes/llms.txt): Turn on track changes in VB6, list tracked insertions and deletions, accept or reject them and build a review dialog box like the TXWords sample's.
- [Text Formatting and Views](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/llms.txt): Set ViewMode to normal, page, floating text or simple control view, size pages in twips with PageWidth and margins, and handle scrolling and AutoExpand events.
- [A Word Processor](https://docs.textcontrol.com/tx-text-control-activex/document-editor/word-processor/llms.txt): TXWords, the VB6 word processor sample, sets up pages with SectionFormatDialog, prints with PrintDialog, previews pages, finds text and sets frames and colors.
- [Working With XML Files](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/llms.txt): Open, validate, edit and program XML documents in TXTextControl with a CSS style sheet and a DTD: XML editor mode, XMLElements and the XML Basics sample.

---

## Nearby

- **Previous:** [Creating a Simple Word Processor](https://docs.textcontrol.com/tx-text-control-activex/getting-started/first-application/llms.txt)
- **Next:** [Text Formatting and Views](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/llms.txt)
