# What's New in TX Text Control .NET for Windows Forms 22.0

> TX Text Control .NET for Windows Forms 22.0 (X12): WIC image handling with TIF and GIF export, color dialog boxes, InactiveMarker, Page.Header, PDF JavaScript.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for Windows Forms > What's New > Older Versions > What's New in TX Text Control .NET for Windows Forms 22.0
- **1502 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/whats-new/older-versions/2200/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/whats-new/older-versions/2200/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/whats-new/older-versions/2200/llms-full.txt

---

Version 22.0 moved the image handling of TX Text Control .NET for Windows Forms to the Windows Imaging Component, which added TIF and GIF to the formats images can be exported in. The Windows Forms `TextControl` also received two built-in color dialog boxes and a marker that shows the input position while the control is inactive, and PDF documents could carry JavaScript actions.

Version 22.0 was released in April 2015 as TX Text Control X12, together with TX Spell .NET 6.0, as the blog article [TX Text Control X12 and TX Spell 6.0 Released](https://www.textcontrol.com/blog/2015/04/15/tx-text-control-x12-and-tx-spell-60-released/) announced. Most of the version's work went into the HTML5 Web Editor of TX Text Control .NET Server and into the WPF controls, which got a new button bar, ribbon tabs and dialog boxes. Neither is part of TX Text Control .NET for Windows Forms, so their features aren't listed here.

### Version 22.0 at a Glance

| Area | What is new |
|---|---|
| Images | Loading and saving with the Windows Imaging Component, TIF and GIF export |
| Dialog boxes | Built-in dialog boxes for the text color and the text background color |
| PDF | Document-level JavaScript actions |
| Input position | A marker while the control is inactive, scrolling to the input position, fields and targets at the input position |
| Pages | The header and the footer of a page |

### Images

TX Text Control uses the Windows Imaging Component (WIC), the imaging framework of Windows based on the Component Object Model, to load and save images and their metadata. Two export formats were added: Tagged Image Format (TIF) and Graphics Interchange Format (GIF). [Image.ExportFilterIndex](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/image/exportfilterindex-property/llms-full.txt) selects the format for one image, and [SaveSettings.ImageExportFilterIndex](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/imageexportfilterindex-property/llms-full.txt) for all images of a document. See [Images, Text Frames, and Shapes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-processing/images-shapes/llms-full.txt).

### Dialog Boxes

Two methods of [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt) open new built-in dialog boxes: [ForeColorDialog](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/forecolordialog-method/llms-full.txt) sets the color of the text, and [TextBackColorDialog](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textbackcolordialog-method/llms-full.txt) sets its background color. Both return the `DialogResult` of the dialog box. [Built-in Dialog Boxes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/ribbon-ui/dialog-boxes/llms-full.txt) lists the dialog boxes of the current version.

### Document Processing

- **JavaScript in PDF documents.** [SaveSettings.DocumentLevelJavaScriptActions](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/documentleveljavascriptactions-property/llms-full.txt) takes an array of scripts that are embedded at document level and run when the PDF document is opened. PDF/A documents don't get them. See [PDF Creation and Conversion](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/pdf/creation-conversion/llms-full.txt).
- **Input position marker.** [InputPosition.InactiveMarker](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/inactivemarker-property/llms-full.txt) shows a marker at the input position while the `TextControl` is inactive and its blinking caret isn't visible.
- **Scroll to the input position.** [InputPosition.ScrollTo](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/scrollto-method/llms-full.txt) scrolls the input position into view.
- **Fields and targets at the input position.** [TextField.ContainsInputPosition](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfield/containsinputposition-property/llms-full.txt) and [DocumentTarget.ContainsInputPosition](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/containsinputposition-property/llms-full.txt) tell whether a field or a target is at the input position.
- **Headers and footers of a page.** [Page.Header](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/page/header-property/llms-full.txt) and [Page.Footer](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/page/footer-property/llms-full.txt) return the header and the footer of a page, or `null` if the page has none. See [Sections, Pages, Headers, and Footers](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-processing/sections-headers/llms-full.txt).

### Upgrade to Version 22.0

The update notes of version 22.0 concern TX Text Control .NET for WPF only: its button bar replaced several properties with `Items`, `BorderBrush` and `BorderThickness`, and its `TextControl` lost the `MousePosition` property and can be used only after its own `Loaded` event. The Windows Forms `ButtonBar` and `TextControl` aren't affected.

### New Classes, Properties, Methods and Events

The members below are the ones that the What's New documentation of version 22.0 lists for TX Text Control .NET for Windows Forms. The version added no classes to it. Names are relative to the `TXTextControl` namespace, each name links to its current reference page, and "(obsolete)" marks a member that is obsolete today.

#### Members by Class

| Class | Properties | Methods |
|---|---|---|
| [DocumentTarget](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/llms-full.txt) | [ContainsInputPosition](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/containsinputposition-property/llms-full.txt) |  |
| [InputPosition](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/llms-full.txt) | [InactiveMarker](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/inactivemarker-property/llms-full.txt) | [ScrollTo](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/scrollto-method/llms-full.txt) |
| [Page](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/page/llms-full.txt) | [Footer](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/page/footer-property/llms-full.txt), [Header](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/page/header-property/llms-full.txt) |  |
| [SaveSettings](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/llms-full.txt) | [DocumentLevelJavaScriptActions](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/documentleveljavascriptactions-property/llms-full.txt) |  |
| [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt) |  | [ForeColorDialog](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/forecolordialog-method/llms-full.txt), [TextBackColorDialog](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textbackcolordialog-method/llms-full.txt) |
| [TextField](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfield/llms-full.txt) | [ContainsInputPosition](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfield/containsinputposition-property/llms-full.txt) |  |

### Next Steps

- [Version 23.0](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/whats-new/older-versions/2300/llms-full.txt): the features of the next version.
- [Version 21.0](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/whats-new/older-versions/2100/llms-full.txt): extended find and replace dialog boxes, content control adapters and language detection.
- [Built-in Dialog Boxes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/ribbon-ui/dialog-boxes/llms-full.txt): the dialog boxes of the current version.

---

## Nearby

- **Previous:** [What's New in TX Text Control .NET for Windows Forms 23.0](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/whats-new/older-versions/2300/llms-full.txt)
- **Next:** [What's New in TX Text Control .NET for Windows Forms 21.0](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/whats-new/older-versions/2100/llms-full.txt)
