Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

How to: Set the Text Content of a TextBox Control

This example shows how to use the Text property to set the initial text contents of a TextBox control.

Example

<TextBox Name="tbSettingText">
  Initial text contents of the TextBox.
</TextBox>

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

See Also

Community Additions

ADD
Show:
© 2015 Microsoft