Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.