TextBox Content Model Overview

.NET Framework 3.5

This content model overview describes the supported content for a TextBox. A TextBox is a control that can be used to display or edit unformatted text. A TextBox supports unformatted text only. For applications that require support for richer content, see RichTextBox.

The following graphic shows an example of a TextBox.

Example of a TextBox

TextBox screen shot

This topic contains the following sections.

A TextBox has the following content properties.

The Text property specifies the unformatted text contained within the TextBox. The following example shows how to use the Text property to add some unformatted text to a TextBox.

tbSettingText.Text = "Initial text contents of the TextBox.";

Only TextBox uses this content model.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft