# Performance

> Keep Windows Forms apps responsive with TX Text Control: TextControl on the UI thread, ServerTextControl in the background, memory, large files and mail merge.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for Windows Forms > Performance
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/llms-full.txt

---

## On This Page

- [Two Classes, Two Kinds of Work](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/#two-classes-two-kinds-of-work)
- [Find the Right Page](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/#find-the-right-page)
- [Where to Start](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/#where-to-start)
- [Related Pages](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/#related-pages)

---

## In This Section

- [Performance Best Practices](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/best-practices/llms.txt): Every performance measure for Windows Forms apps with its measured effect, plus DefaultFormattingPrinter in Program.cs and a Stopwatch test of a merge.
- [Large Documents](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/large-documents/llms.txt): Handle long documents in Windows Forms: 64-bit builds, Selection objects and Selection.Load in one undo step, text replacement in large DOCX files, PDF size.
- [Document Loading and Conversion](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/loading-conversion/llms.txt): Load and convert documents faster in Windows Forms: keep the TX Text Control format, reuse one ServerTextControl, LoadImages and PDFImportSettings, PDF last.
- [Mail Merge Performance](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/mail-merge/llms.txt): Measured MailMerge times, faster merge block design, background merges in Windows Forms with DataRowMerged progress and Cancel, and processes for large batches.
- [Memory Usage and Resource Disposal](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/memory-usage/llms.txt): Dispose ServerTextControl and MailMerge, count live instances and USER and GDI handles, switch off AllowUndo and handle OutOfMemory errors in Windows Forms.
- [UI Threading and Background Operations](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/threading/llms.txt): Run TX Text Control work off the Windows Forms UI thread: ServerTextControl in Task.Run, InvokeRequired, BeginInvoke, progress, cancel and parallel loops.

---

## Nearby

- **Previous:** [Secure Application Deployment](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/security/deployment/llms.txt)
- **Next:** [UI Threading and Background Operations](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/performance/threading/llms.txt)
