--- title: "TextBox How-to Topics" ms.date: "03/30/2017" f1_keywords: - "AutoGeneratedOrientationPage" helpviewer_keywords: - "controls [WPF], TextBox" - "TextBox control [WPF], how-to topics" ms.assetid: 006aa461-fe37-4cd8-860a-d38d76e8b9f7 --- # TextBox How-to Topics This section provides examples that demonstrate how to accomplish common tasks using the control. ## In This Section [Create a Multiline TextBox Control](how-to-create-a-multiline-textbox-control.md) [Detect When Text in a TextBox Has Changed](how-to-detect-when-text-in-a-textbox-has-changed.md) [Enable Tab Characters in a TextBox Control](how-to-enable-tab-characters-in-a-textbox-control.md) [Get a Collection of Lines from a TextBox](how-to-get-a-collection-of-lines-from-a-textbox.md) [Make a TextBox Control Read-Only](how-to-make-a-textbox-control-read-only.md) [Position the Cursor at the Beginning or End of Text in a TextBox Control](position-the-cursor-at-the-beginning-or-end-of-text.md) [Retrieve a Text Selection](how-to-retrieve-a-text-selection.md) [Set Focus in a TextBox Control](how-to-set-focus-in-a-textbox-control.md) [Set the Text Content of a TextBox Control](how-to-set-the-text-content-of-a-textbox-control.md) [Enable Spell Checking in a Text Editing Control](how-to-enable-spell-checking-in-a-text-editing-control.md) [Use a Custom Context Menu with a TextBox](how-to-use-a-custom-context-menu-with-a-textbox.md) [Use Spell Checking with a Context Menu](how-to-use-spell-checking-with-a-context-menu.md) [Add a Watermark to a TextBox](how-to-add-a-watermark-to-a-textbox.md) ## Reference ## See also - [WPF Controls Gallery Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Getting%20Started/ControlsAndLayout) - [TextBox Styles and Templates](textbox-styles-and-templates.md)